From: Joel VanderWerf Date: 2004-08-17T06:56:39+09:00 Subject: Re: fork/exec ShellExecute Fitzgerald,Greg wrote: > I am trying to launch a Windoze application and then wait for the app to > close before continuing. If I were on a Unix variant I'd do this: > > fork { exec("myApp") } > Process.wait This will wait for myApp to close: system("myApp") Other ruby threads will keep running. If you want the main ruby thread to keep running, too, just do this: th = Thread.new do system("myApp") end # do some stuff th.join # wait for myApp to close # then do something else