in reply to Run Shell script followed by ctrl-c within perl
my $rc = fork; if($rc == 0){ #child system("run_shell_script"); }else{ #parent #decide when to kill shell script by killing child #not sure if this won't create a zombie shell script #and system dosen't return a PID kill 9, $rc; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Run Shell script followed by ctrl-c within perl
by harry1982 (Initiate) on Nov 25, 2009 at 06:19 UTC | |
by colwellj (Monk) on Nov 25, 2009 at 23:09 UTC |