Hi,
I’m starting a bunch of processes using win32/process
(http://rubyforge.org/projects/win32utils/). I want to be able to
kill some of those processes. In *nix, I’d send them a TERM signal.
What’s the Windows equivalent?
Thanks,
Joe
Hi,
I’m starting a bunch of processes using win32/process
(http://rubyforge.org/projects/win32utils/). I want to be able to
kill some of those processes. In *nix, I’d send them a TERM signal.
What’s the Windows equivalent?
Thanks,
Joe
signal = 4 # or 9 if you really want to take it out
Process.kill signal, pid
pth
I’m using win32/process’s Create function to start a new Windows
process.
However, if I do a Process.kill(0, ) to a program that I started
via Ruby, it always returns back an array with the pid in it, even if
the process was killed.
Any ideas?
Thanks,
Joe
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs