Help for this page

Select Code to Download


  1. or download this
      open(PROCS, "ps -a | grep $process |");
      while ( my $proc = <PROCS> ) {
          # ...
      }
    
  2. or download this
      open(PROCS, "ps -a |");
      while ( my $proc = <PROCS> ) {
          next if $proc !~ /$process/;
          # ...
      }