Re: current cpu usage
> sorry, I should have been more specific, I need to get the output in a format
> a script could use.
> I have tried the uptime command however I'm a bit lost at what the numbers
> displayed represent (& how to turn these into a percentage).
> (If indeed this is a good way to do this)
/usr/bin/top -bin 1
Will run top with just the running processes listed then spit out the
output and exit. A perl script should be able to parse the output and do
the math. See man top for details.
ELB Internet Services, Inc.
Web Design, Computer Consulting, Internet Hosting