For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > June 2007 > Re: How to obtain in a textual file consumption (consommation) CPU and MEMORY of the









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How to obtain in a textual file consumption (consommation) CPU and MEMORY of the
David Schwartz

2007-06-16, 7:05 pm

On Jun 15, 11:28 pm, "Guytou" <map...@free.fr> wrote:
> Hi,
>
> How to obtain in a textual file consumption (consommation) CPU and MEMORY of
> the Unix processes?
> Here my script.
>
> #! bin/ksh
> top | grep my_user > toto$(date + %H).log
> exit
>
> This script does not function. It gives me empty textual files.
> The command "top" used in line of order functions well.
> It gives me good results. How to obtain in a textual file or log the result
> of the command "top"?
>
> Thank you
>
> Guytou


Try 'top -b -n1' or whatever is needed to make your 'top' command do
what you want it to do.

DS

Guytou

2007-06-16, 7:05 pm

>> Hi,
>
> Try 'top -b -n1' or whatever is needed to make your 'top' command do
> what you want it to do.
>
> DS


Thank you for your assistance

GUYTOU

"David Schwartz" <davids@webmaster.com> a écrit dans le message de news:
1182021424.136808.256980@n15g2000prd.googlegroups.com...
> On Jun 15, 11:28 pm, "Guytou" <map...@free.fr> wrote:
>
> Try 'top -b -n1' or whatever is needed to make your 'top' command do
> what you want it to do.
>
> DS
>



Bigshow_312

2007-06-21, 12:14 pm

Free access to one of the best poorn galleries!
http://girls-with-toys.info/gal218571
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com