From: Lawrence Oluyede Date: 2005-05-14T07:50:29+09:00 Subject: Re: Deal with large inputs in a popen (was Re: Get back data from a child (with exec)) Ilmari Heikkinen writes: > You need to send the data in blocks lequal to the pipe buffer size. > Something like pipe.write(input.read(4096)) until input.eof? Tried send data line by line but it still hangs :( > Btw, maybe popened IOs should do this automatically under covers? I think it does but my code works behind a Rails/cgi app and it doesn't work. I'm planning to write a Ruby code replacement for the external process. Thanks anyway -- Lawrence http://www.oluyede.org/blog