Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: How to limit CPU utilization by ANY process with a perl script?

by Lawliet (Curate)
on Feb 24, 2009 at 01:45 UTC ( [id://745875]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    USER     PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    marc    9764  0.0  1.9  85544 40380 ?        S    15:47   0:07 pidgin
    
  2. or download this
    $ ps aux | perl -lane 'print if $F[3] == 1.9'
    marc    9764  0.0  1.9  85500 40376 ?        S    15:47   0:07 pidgin
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found