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

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





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 How to obtain in a textual file consumption (consommation) CPU and MEMORY of the Unix
Guytou

2007-06-16, 1:36 am

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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com