in reply to kill process

my $pid=shift; system("sudo kill $pid");
BUT, Caution: DON'T TRY THIS AT HOME :-)
Bottomline: If the OS won't let you, perl won't either
Updated after CB with diotalevi
---------------------------
Dr. Mark Ceulemans
Senior Consultant
IT Masters, Belgium

Replies are listed 'Best First'.
Re^2: kill process
by diotalevi (Canon) on Dec 12, 2002 at 15:03 UTC

    If anyone is curious the original post was a joke on `sudo rm -rf`. I considered the node because it was reckless. It wouldn't have worked anyway but that wasn't the real problem.

    __SIG__ use B; printf "You are here %08x\n", unpack "L!", unpack "P4", pack "L!", B::svref_2object(sub{})->OUTSIDE;