in reply to Re: Kill a process in perl windows and proceed only if it killed the process
in thread Kill a process in perl windows and proceed only if it killed the process

will system(kill -9 <pid>) not work here ? I am just curious...

  • Comment on Re^2: Kill a process in perl windows and proceed only if it killed the process

Replies are listed 'Best First'.
Re^3: Kill a process in perl windows and proceed only if it killed the process
by DrHyde (Prior) on Jul 20, 2012 at 10:49 UTC
    Not on Windows. And if you are on a POSIX system, why shell out instead of using the built-in kill?
Re^3: Kill a process in perl windows and proceed only if it killed the process
by gargle (Chaplain) on Jul 20, 2012 at 21:08 UTC
    Indeed, on Linux I myself prefer system(shutdown -r now).
    --
    if ( 1 ) { $postman->ring() for (1..2); }