From: Caio Chassot Date: 2006-09-20T10:45:29+09:00 Subject: Re: piping input when shelling out On 2006-09-19, at 22:24 , Daniel N wrote: > > Again, I havn't used it before, but the IO#pipe command seems to > allow for > bi-directional control. Yea, I figured out how to open a pipe for both read and write. You use a numeric mode. Here's what I got: #!/usr/bin/env ruby io = File.popen('perl -pe s/a/b/g', 0666) io.puts('abc') io.close_write puts io.read outputs: bbc So it's fine for my needs. I just need to wrap it into something more idiomatic. Thanks Paul and Daniel