From: Shashank Date Date: 2004-08-17T07:09:10+09:00 Subject: Re: fork/exec ShellExecute --- Joel VanderWerf wrote: > This will wait for myApp to close: > > system("myApp") And if you want to capture stdout you can also do back-quoting: output = `myapp` or output = %x{myapp} wherever there is 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 > > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail