Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by prashantktyagi (Scribe)
on Jul 20, 2012 at 10:18 UTC ( #982784=note: print w/replies, xml ) Need Help??


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 (Hermit) 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); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://982784]
help
Chatterbox?
[Discipulus]: test for pmcbtk
[Discipulus]: sometimes the client dies for extra content </chatter><span class="error" style="color: #cc0000">Server Error (Error ID 9162
[Discipulus]: the span is considered extra content by the parser
[Corion]: Mhmm - that would be some internal error, but I can't look into that right now as I don't have access to the logs from here ;)
[Discipulus]: ah, but it can be skipped by the client (?)
[Corion]: I think so, but I wonder what error might be there...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-07-25 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (365 votes). Check out past polls.