Perl Monk, Perl Meditation | |
PerlMonks |
Re: Killing processesby jimw54321 (Acolyte) |
on Mar 20, 2015 at 18:19 UTC ( [id://1120785]=note: print w/replies, xml ) | Need Help?? |
Greeting Everyone, Two comments My understanding is that the kill command only reports whether or not it successfully sent a signal which may or may not have actually killed the process. The only safe thing to do is to check whatever mechanism you have for getting the PIDs in the first. Tangentially, IMHO, backticks are best avoided in Perl code. The syntax `some command` looks nicer as qx|some command|.
In Section
Seekers of Perl Wisdom
|
|