From: Roger Pack Date: 2010-06-29T23:41:31+09:00 Subject: Re: RCR: IO.popen4 Tanaka Akira wrote: > 2010/6/26 Roger Pack : > >> IO.popen("ls") # what's the PID? > > Use IO#pid. > >> r,w,e,thread = Open3.popen3("ls") # what's the PID? > > Use thread.pid. Oh cool thanks. On 1.8 there appears to be no thread... Open3.popen3("ls") => [#, #, #] Any option there? Also wouldn't it be good to have a popen4 method so you can avoid starting an extra thread (though I suppose that Process.spawn already gives us that functionality...) -r -- Posted via http://www.ruby-forum.com/.