From: Caio Chassot Date: 2006-09-20T09:49:17+09:00 Subject: Re: piping input when shelling out On 2006-09-19, at 21:45 , Paul Lutus wrote: > > 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? No, from within a ruby program I want to call some shell command to act on data stored in a ruby string, so, in the ruby program, something like, in pseudoruby: output = system('shell_cmd --params etc', :input => a_string)