Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Killing a windows process
Joe Van Dyk
10/27/2006 11:07:00 PM
Hi,
I'm starting a bunch of processes using win32/process
(
http://rubyforge.org/projects/w...
). 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
2 Answers
Patrick Hurley
10/27/2006 11:25:00 PM
0
signal = 4 # or 9 if you really want to take it out :-)
Process.kill signal, pid
pth
On 10/27/06, Joe Van Dyk <joevandyk@gmail.com> wrote:
> Hi,
>
> I'm starting a bunch of processes using win32/process
> (
http://rubyforge.org/projects/w...
). 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
>
>
Joe Van Dyk
11/10/2006 5:26:00 AM
0
I'm using win32/process's Create function to start a new Windows
process.
However, if I do a Process.kill(0, <pid>) 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
Patrick Hurley wrote:
> signal = 4 # or 9 if you really want to take it out :-)
> Process.kill signal, pid
>
> pth
>
> On 10/27/06, Joe Van Dyk <joevandyk@gmail.com> wrote:
> > Hi,
> >
> > I'm starting a bunch of processes using win32/process
> > (
http://rubyforge.org/projects/w...
). 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
> >
> >
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Killing a windows process
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password