Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Process Monitoring Script

by jlongino (Parson)
on Jan 19, 2002 at 22:22 UTC ( [id://140104]=note: print w/replies, xml ) Need Help??

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`;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://140104]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found