From: Bertram Scharpf Date: 2009-06-18T19:44:36+09:00 Subject: Re: launch external program Hi, Am Donnerstag, 18. Jun 2009, 05:45:08 +0900 schrieb Robert Klemme: > 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 Gosh, that's the programming style I was looking for. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de