Getting pipe output before command returns
- From: "jvivenot" <jvivenot@xxxxxxxxx>
- Date: 24 May 2006 08:37:52 -0700
Hi,
In a Gnome Ruby application, I want to display the output of a bash
command during its own execution, instead of after it finished.
In order to do this, I used :
io = IO::popen(...)
io.each_line {
}
But this displays the output after the command returned. How could I do
? (my command takes several minutes, and displays things every two
seconds, that's why I can't wait...)
Thanks.
(I hope my english is understandable.)
.
- Follow-Ups:
- Re: Getting pipe output before command returns
- From: Bernhard 'elven' Stoeckner
- Re: Getting pipe output before command returns
- Prev by Date: Re: Reading binary files with a fixed struct
- Next by Date: Re: Getting pipe output before command returns
- Previous by thread: Reading binary files with a fixed struct
- Next by thread: Re: Getting pipe output before command returns
- Index(es):
Relevant Pages
|