From: "Pedro CĂ´rte-Real" Date: 2006-06-01T18:59:07+09:00 Subject: Re: Passing a string as stdin to a popen On 5/31/06, Logan Capaldo wrote: > I'm not sure _exactly_ what the problem is, but I imagine that > io.write mytext > io.close_write # let the process know you've given it all the data > result = io.read > > will fix things right up. Yes, this works. The problem with this is that since I only read after I write the whole thing the process might block since noone is reading from it and not write anything. Is there some way I can connect the io object I get from popen to another io object I create myself. So as to create an actual pipe in ruby? Pedro.