It seems like there should be a CPAN module to do this, but I just searched for one and nothing useful came up.
top -b -n 1 -p 1 should be pretty easy to parse. Or vmstat, which displays how busy a CPU is. uptime is also available on all Unix systems I'm aware of, but the information it gives is somewhat limited.
In reply to Re: Finding out Processor Usage
by sgifford
in thread Finding out Processor Usage
by stvn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |