Caio Chassot
9/20/2006 12:49:00 AM
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)