Help for this page

Select Code to Download


  1. or download this
    my $pid = system 1, "bg_script.pl $ARG1 \"$ARG2\" $ARG3 $ARG4 $ARG5";
    print "\$pid == '$pid'\n";
    ...
    sleep 10;
    $still_running = kill 0, $pid;
    print "AFTER SLEEP: \$still_running == '$still_running'\n\n";
    
  2. or download this
    $still_running = kill 0, $pid;