top -b -n 1

John Cornelius jc at lht.com
Mon Dec 24 17:43:12 UTC 2007


How about uptime?

--jc

Peter Lauri wrote:

> -d is just giving the "Delay Time" so it is not giving me what I need. 
> I need top to just output the current status to STDOUT and after that 
> exit. The only way to do that is to go with the -b option, but that 
> one seams to be "averaging" the values instead of giving the current 
> status.
>
> So to move out of the "top box": how can I get a "snap shot" of the 
> current CPU load?
>
> /Peter
>
>
> On Dec 23, 2007 1:18 AM, John Summerfield < 
> debian at herakles.homelinux.org <mailto:debian at herakles.homelinux.org>> 
> wrote:
>
>
>     -d
>     but be realistic, you don't want top dominating the system.
>
>
>     --
>
>     Cheers
>     John
>
>     -- spambait
>     1aaaaaaa at coco.merseine.nu <mailto:1aaaaaaa at coco.merseine.nu>
>      Z1aaaaaaa at coco.merseine.nu <mailto:Z1aaaaaaa at coco.merseine.nu>
>     -- Advice
>     http://webfoot.com/advice/email.top.php
>     http://www.catb.org/~esr/faqs/smart-questions.html
>     <http://www.catb.org/%7Eesr/faqs/smart-questions.html>
>     http://support.microsoft.com/kb/555375
>
>     You cannot reply off-list:-)
>
>     --
>     fedora-list mailing list
>     fedora-list at redhat.com <mailto:fedora-list at redhat.com>
>     To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071224/f7792f11/attachment-0001.htm>


More information about the fedora-list mailing list