in reply to How to limit CPU utilization by ANY process with a perl script?
This basically prints the CPU utilization if it is more than 70%. We can replace the 'print' with a force kill command if this is the answer to your question.ps aux | perl -lane 'print if $F[3] > 70'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to limit CPU utilization by ANY process with a perl script?
by Bloodnok (Vicar) on Feb 24, 2009 at 08:22 UTC | |
by MidLifeXis (Monsignor) on Feb 24, 2009 at 14:33 UTC | |
|
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 | |
by bichonfrise74 (Vicar) on Feb 24, 2009 at 04:25 UTC |