From: Robert Klemme Date: 2009-12-30T05:19:16+09:00 Subject: Re: IO.popen('-') === fork ? 2009/12/29 Nilez Parker : > I just want to know if the following two are technically equivalent > (calling fork(2) in UNIX environments): > > ########## > > IO.popen('-') {|io| >  ... > } > > #--------- > > fork do >  ... > end > > ########## > > As much explanation you want to give will be appreciated, I will soak it > all up. Thanks ahead. :) fork does nothing to redirect stdin, stdout and stderr while popen in the form you used will send the sub process's stdout to a pipe. So the answer is: no, they are not equivalent. Rather popen uses some form of fork under the hood. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/