From: Lawrence Oluyede Date: 2005-05-14T06:15:28+09:00 Subject: Re: Deal with large inputs in a popen (was Re: Get back data from a child (with exec)) Ara.T.Howard@noaa.gov writes: > send the data down in a thread > > data = IO::read 'huge_file' > sender = Thread::new(data){data.each{|line| pipe.puts line}} > > you'd probably then want a reader to load a thread safe queue with the > returned data. That's what I was doing before with popen3, wrap the function with a Thread. Let me try again > why don't you want to block? Cause it hangs the UI (a webpage) -- Lawrence http://www.oluyede.org/blog