From: Paul Lutus Date: 2006-09-20T09:45:05+09:00 Subject: Re: piping input when shelling out Caio Chassot wrote: > Hi all, > > I want to use Kernel#system or one of its friends to manipulate some > data I have in a ruby string. Ideally, I'd want the executed command > to read the string from stdin, as if ruby had piped the data to it. > The data may be reasonably large. Any tips? Could you be a bit more clear? Do you want to write a program that will cooperate with a stream? As in: data_source | ruby-program | data_dest Yes? -- Paul Lutus http://www.arachnoid.com