Unix Programming - Re: How to obtain in a textual file consumption (consommation) CPU and MEMORY of the U

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2007 > Re: How to obtain in a textual file consumption (consommation) CPU and MEMORY of the U





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 U
David Schwartz

2007-06-16, 7:17 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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com