Peter Billson writes:
> > 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.
>
> Pete
> --
> http://www.elbnet.com
> ELB Internet Services, Inc.
> Web Design, Computer Consulting, Internet Hosting
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>
I'm really not sure but cat /proc/smothing should do the trick
--
______________________________________________________
Felipe Alvarez Harnecker. QlSoftware.
Tels. 665.99.41 - 09.874.60.17
e-mail: [EMAIL PROTECTED]
http://qlsoft.cl/
http://ql.cl/
______________________________________________________
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]