From: nobu.nokada@... Date: 2002-10-22T10:42:53+09:00 Subject: Re: fork and exec Hi, At Sat, 19 Oct 2002 15:10:07 +0900, Edward Wilson wrote: > > When you use redirection, ruby invokes /bin/sh and /bin/sh > > forks to execute the command. > > Is there any chance Ruby will eventually have its `own' OS hooks so > that it won't have to do the above? Though I'm not sure what you mean by "OS hooks", do you want to avoid running /bin/sh? If so, you need to redirect by yourself in the child process now. unless pid = fork STDIN.reopen(open("ttt")) exec("cat") end # new method to start child process with such options may be # desirable. -- Nobu Nakada