A
Alex Wayne
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?
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?