Oh, and there is also IO.pipe, which is unidirectional under most Unix 
flavours.

>> rd, wr = IO.pipe
=> [#<IO:0x7f8a4c31d0e8>, #<IO:0x7f8a4c31d098>]
>> wr.puts "hello"
=> nil
>> rd.gets
=> "hello\n"
>> 
-- 
Posted via http://www.ruby-forum.com/.