Help for this page

Select Code to Download


  1. or download this
       @outrecs = `ps -efo pid,pcpu,fname`;
       @matches = grep /ns-httpd/, @outrecs;
    ...
          ($process, $pcpu, $pname) = split(" ");
          $sttotal = $sttotal + $pcpu;
       }
    
  2. or download this
       @matches = `ps -efo pid,pcpu,fname|grep httpd`;