From: nobu.nokada@... Date: 2003-12-17T03:47:52+09:00 Subject: Re: redirect stdout for Kernel.system()? Hi, At Tue, 16 Dec 2003 15:53:43 +0900, Neil Spring wrote: > I'd like to be able to say: > > $stdout=File.open("foo.out", "w") > Kernel.system("/bin/echo", "foo") > > intead of: > > Kernel.system("/bin/echo foo > foo.out") > > which requires two processes; forking a "/bin/sh" for > something as simple as redirection is sad. $stdout.reopen("foo.out") -- Nobu Nakada