Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my $pid = $proc->pid;
    
    print "*** $pid ***\n";
    
  2. or download this
    ~/scratch$ perl proc.pl 
    *** 3489 ***
    
    ~/scratch$ ps ax | grep sleep
     3489 pts/1    S      0:00 perl sleep.pl