From: Paul Winward Date: 2008-05-10T15:08:54+09:00 Subject: Re: capture output in real time Thanks for the suggestion but I'm still having the problem. Paul ara.t.howard wrote: > On May 9, 2008, at 6:08 PM, Paul Winward wrote: >> >> Note, I'm avoiding STDOUT.flush in sleep.rb since I won't be able to >> change the actual scripts I'll be passing to popen3. > > popen3 is going to be using fork/exec under the hood and should > inherit the sync setting of STDOUT, so try setting > > STDOUT.sync = true > > before the popen and see if that helps - untested, but i'm running out > the door.... > > cheers. > > a @ http://codeforpeople.com/ -- Posted via http://www.ruby-forum.com/.