Getting pipe output before command returns



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.)

.



Relevant Pages

  • Re: Anyone remember DOS?
    ... Trying to see if anyone knows the command I'm looking for without ... and *) can be used to specify groups of files. ... When you use the DIR command, it will display all files that match the ... To display only files with the .TXT filename extension on the current ...
    (rec.music.artists.springsteen)
  • Re: Rand and timefmt
    ... whatever the execution still gives a color 'blue'. ... Unfortunately you need to run an external command to get the current ... To make it shut up and display just the time without ... you have to use the /t switch. ...
    (comp.graphics.apps.gnuplot)
  • Re: using the command prompt
    ... Is there a tutorial on using the command prompt to complete ... That will display a list of all ... CD Change Directory - move to a specific Folder. ... DSACLs Active Directory ACLs ...
    (microsoft.public.windowsxp.general)
  • Re: Display problems in Vista
    ... Very small overhead. ... the command packet needs to be transfered. ... have to display a line that is x pixels wide at any zoom level. ...
    (comp.graphics.api.opengl)
  • Re: Installing FreeBSD ver. 8.2
    ... the find command line you've been running. ... In checking the bash manual, ... Because execution of programs will only be done from ... I found a two line command to cause the bash prompt to ...
    (freebsd-questions)