From: Paul Brannan Date: 2002-04-13T07:45:36+09:00 Subject: Re: Process controlls On Sat, Apr 13, 2002 at 05:58:33AM +0900, JohnW wrote: > Yet another iteration....and I'm one step closer: > > a = IO.popen("foo") > > begin > sleep(5) > until File.exist?("file") > end > ensure > p "kiing manager" > Process.kill("SIGTERM", a.pid) > end > > > With this I get the CORRECT pid, but the kill method returns an error > saying I'm not the owner. OK...how do I correct that? Strange. If you created the process, you should be able to kill it. Perhaps this is not exactly what your code is doing? Can you do: system("ps aux | grep #{a.pid}") and see if that gives you any relevant debugging information? Paul