Help for this page

Select Code to Download


  1. or download this
     
    # opne the pipe, check if fork passed
    open PIPE, "|$prog" or die $!; 
    ...
    print PIPE @files;
    # check if the command completed successfully
    close PIPE or die "Command failed : $! || $?";