From: Daniel N Date: 2006-09-20T10:24:28+09:00 Subject: Re: piping input when shelling out ------=_Part_345351_18313988.1158715465212 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/20/06, Caio Chassot wrote: > > > On 2006-09-19, at 22:10 , Paul Lutus wrote: > > The problem with File.popen() is that you want bidirectional > > communication > > with the child process, and AFAIK that doesn't offer it -- you can > > either > > read, or write, to the pipe, but not both. > > Hmm, that's not cool. I'll run some tests, but looks like it's back > to using tempfiles then. Again, I havn't used it before, but the IO#pipe command seems to allow for bi-directional control. http://www.ruby-doc.org/core/classes/IO.html#M001252 ------=_Part_345351_18313988.1158715465212--