Help for this page

Select Code to Download


  1. or download this
    $cmd="$scriptsdir/process_tar.pl $file >> /tmp/testlog &";            
    +          
    +                  
    $pid=open(PID,"|$cmd");
    
  2. or download this
    #!/usr/bin/perl
    # file pid.pl
    sleep 1; print "$0 PID: $$\n";
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    my PID is 4465
    PID returned by open: 4465
    ./pid.pl PID : 4466