From: pc000@... (PaulC) Date: 2001-07-30T11:30:13+09:00 Subject: [ruby-talk:18776] Re: Autoflush backquotes?? Chris, Try using popen - eg. IO.popen("vmstat 1") { |f| while !f.eof ; print f.readline ; end } Regards, PaulC Chris Moline wrote in message news:... > I am trying to get the backquotes to print everything "as it comes" instead of > after the backquotes are done. Does anyone have any idea how to do this?? Using > $stdout.sync = true does not work. Here is the relevant part of the script > > def make( action ) > print `cd #{ @ports_dir }/#{ @category }/#{ @portname }; > make #{ action } #{ autoclean? ? "clean" : "" }` > end > > What happens is I install a port it sits for a very long time and then prints > huge gobs of info all at once. Everything works right, I just want it flushed > right away. > > Sincerly, > Chris Moline