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

Re: current cpu usage



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 debian-isp-request@lists.debian.org
 > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 > 
 > 

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: felipe.alvarez@qlsoft.cl

http://qlsoft.cl/
http://ql.cl/
______________________________________________________



Reply to: