[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Processor Utilization




charles@lunar.cc said:
> How can i find just the number processor utilization? I know top will give
> you the number along with a great deal more. I am looking for a method to
> be able to grep out the number or something for a script that will issue
> another comand if the number is over XX.

You can use "uptime"...

 11:59am  up 14 days,  2:24,  3 users,  load average: 0.06, 0.33, 0.64

That would be portable, but it wouldn't be easy.  What you probably
want is /proc/loadavg.

0.06 0.32 0.63 2/123 333

Steve
-- 
steve@silug.org           | Linux Users of Central Illinois
(217)698-1694             | Meetings the 4th Tuesday of every month
Steven Pritchard          | http://www.luci.org/ for more info

--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.