top -b -n 1

John Summerfield debian at herakles.homelinux.org
Sat Dec 22 23:18:01 UTC 2007


Peter Lauri wrote:
> Hi,
> 
> I am just creating a very simple system performance monitoring script. I am
> parsing the output of the following command and writes it to a text file:
> 
> top -b -n 1 | egrep '^Cpu'
> 
> I run "top" as normal in the shell during the execution, but that one is
> oscilating a lot. However, the "top -b -n 1" just changes very slowly. It
> feels like the top -b gives some sort of "average" value to the values.
This is nearer to running it "normally."
top -b -n20  | egrep '^Cpu'

> 
> If so , how can I set it to have shorter "average" rate?

-d
but be realistic, you don't want top dominating the system.


-- 

Cheers
John

-- spambait
1aaaaaaa at coco.merseine.nu  Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)




More information about the fedora-list mailing list