From: Tim Hunter Date: 2008-04-09T04:12:07+09:00 Subject: Re: System commands with streaming output Alex Wayne wrote: > I have a long running system command that I want to print the output > from a ruby script. Basically, this system command runs like a daemon > and prints output. So it I just use: > > `./mycommand foo` > > The output is completely supressed, and my ruby script simply appears to > hang. > > So how can I execute a system command and have the output streamed back > to the terminal before the command finishes? ri IO::popen -- Posted via http://www.ruby-forum.com/.