From: Phy Prabab Date: 2006-09-30T02:18:51+09:00 Subject: Re: Question on exec subprocesses --0-1373888700-1159550329=:73857 Content-Type: text/plain; charset=us-ascii Thanks, this works like a charm! ----- Original Message ---- From: Wilson Bilkovich To: ruby-talk ML Sent: Thursday, September 28, 2006 4:45:44 PM Subject: Re: Question on exec subprocesses On 9/28/06, Phy Prabab wrote: > Folks, > > Can someone shed some light on how I can accomplish something similar to this: > > exec("foo action") > exec("foobar action") > Process.wait > > I want to wait on the second process, yet in ruby 184, all processes are waited on (until completion). How can I effectively fork off these process simultaneously and wait for the last one to complete or what would be really nice, is to wait for both of these separate processes to finish. > Does: fork {exec "foo action"} fork {exec "foobar action"} Process.waitall do what you want? --0-1373888700-1159550329=:73857--