From: Paul Lutus Date: 2006-09-20T10:35:11+09:00 Subject: Re: piping input when shelling out 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. Did you read my other post? Piping information to child processes is easy. bigstring = (lots of data) output = `echo "#{bigstring}" | child_program_name` This has every advantage over using temp files. -- Paul Lutus http://www.arachnoid.com