> Unfortunately, this does not work.

Try it now, fixed the bug.

> Second, afaict the reopen method only changes the IOs at Ruby level,
> not the fd:s at C level so it's useless in this context.

Try it out.  This is, AFAIK, the "standard" way to pipeline processes, 
and works in 1.8 even.

GL!
-r

-- 
Posted via http://www.ruby-forum.com/.