From: Robert Klemme Date: 2011-10-18T06:00:51+09:00 Subject: Re: popen in non-blocking mode On Mon, Oct 17, 2011 at 10:44 PM, Jared Grippe wrote: > this worked for me but is kind of lame Daniel's point is that you can do what you want in the Ruby script: it won't work if you cannot convince the other process to flush its output quicker (see initial posting of the thread). > Daniel DeLorme wrote in post #567176: >> ara.t.howard wrote: >>> the general concepts are: >>> >>> IO.popen cmd, 'r+' do |pipe| >>>   pipe.sync = true ### you can do this once >> >> Except that doesn't work. If the subprocess doesn't flush its output, >> setting sync to true won't change anything. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/