From: "Marvin Gülker" Date: 2009-11-22T18:34:46+09:00 Subject: Re: Killing a thread David Schulberg wrote: > system('app.exe') This starts a subprocess which cannot be killed by killing the thread. Use Kernel#spawn (that should work on Windows, too, I think) instead and kill the subprocess: ------------------------------- pid = spawn("app.exe") sleep 10 Process.kill("KILL", pid) ------------------------------- Note that you don't need the thread anymore. Marvin PS: You may have a look here: http://wiki.ruby-portal.de/Tricks#Externe_Programme_starten ;-) -- Posted via http://www.ruby-forum.com/.