From: Robert Klemme Date: 2009-04-20T16:10:42+09:00 Subject: Re: what's the differences between IO.popen ( or IO.pipe) and PTY.spawn?? 2009/4/20 Jun Young Kim : > Actually, I didn't work normally for my case. > > after getting a read io pipe, my program is waiting some events by using > select. > > but it always returns nil because the external program did nothing(didn't > flush something) > > thanks for response. As I said in my previous posting many programs ensure complete lines are sent to the output channel if it is a terminal but they do not if the output is a file or pipe because it is assumed that there immediate delivery does not matter and hence not flushing individual lines yields more throughput. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/