From: Joel VanderWerf Date: 2009-06-18T05:55:52+09:00 Subject: Re: launch external program Robert Klemme wrote: > On 17.06.2009 16:02, Bertram Scharpf wrote: >> output = "" >> t = Thread.new { output << `somecmd` } >> ... >> t.alive? or puts "The full output is:", output > > You can do this as well: > > t = Thread.new { `somecmd` } > ... > output = t.value Thread#value blocks while the thread is running, though. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407