Help for this page

Select Code to Download


  1. or download this
    open FILE, "<my command> 2>&1 1>/dev/null" or exec(); die $!;
    
  2. or download this
    sub sigtrap() {
        if(defined($pid) && ! ($pid == 0)){
    ...
    sleep 15;
    #use the command's output file to get the results