From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-05-15T21:34:14+09:00 Subject: Re: RCR for child execution A minor detail, to quick - me sorry :-) This is not right $defout = w1; $stdout = w1; $stderr = w2 This should of cause instead be $defout.reopen(w1); $stdout.reopen(w1); $stderr.reopen(w2) Then children + "childrens children'' will inherit the stdout/stderr correct. To see this, try: system("ruby -e 'puts \"hello\"; system(\"ls main.cpp nonexist\")'") > ruby b.rb 1 OK: h_e_l_l_o_ OK: _l.s.:. .n.o.n.e.x.i.s.t.:. .N.o. .s.u.c.h. .f.i.l.e. .o.r. .d.i.r.e.c.t.o.r.y. OK: .m_a_i_n_._c_p_p_ OK: _ 2 > -- Simon Strandgaard