From: ara.t.howard@... Date: 2006-04-11T23:17:04+09:00 Subject: Re: App not waiting for popen to finish On Tue, 11 Apr 2006, |MKSM| wrote: > Thanks for your suggestion. I'm going with the last one using a block > with popen. That way i can easily send the output to a logfile. > > Best Regards, fyi. you still need to call Process.wait if you also want the status. with my session lib you can do this as require 'session' sh = Session::SH::new stdout, stderr = '', '' append = lambda{|o,e| stdout << o if o; stderr << e if e} status = sh.execute("wget -r -np -l 0 -w 4 #{url}", &append) status = sh.execute("tar -zcf public_html/category_#{i}.tar.gz files", &append) where stdout and stderr can be anything that supports '<<'. the above starts only one child process as well. regards. -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama