in reply to Killing processes
system `kill $pid`;
So, backticks call kill. Kill doesn't return anything on the standard output, so system gets called with an empty string as the argument. Remove the backquotes and just call system:
my $status = system 'kill', $pid;
Update: Or, even better, use kill:
kill $pid;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Killing processes
by deyaneria (Acolyte) on Mar 20, 2015 at 16:19 UTC | |
by karlgoethebier (Abbot) on Mar 20, 2015 at 18:49 UTC |