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