[sf-lug] logging top
kenshaffer80 at gmail.com
Thu Jul 8 19:04:57 PDT 2010
The man page documents -d5.0 as the switch for a 5 sec delay between pages
on my Ubuntu system. Redirect stdout to a file, and you have it (but in
looking at the file, don't use cat, you will only see the last page in a
standard gnome terminal).
> On 07/08/2010 03:13 PM, Sameer Verma wrote:
>> Is there a way to log output from top to a log file at a preset time
>> interval (say, every 5 seconds)? The system in question is running
>> Fedora 9.
> Run "top -b -n 1 >> SomeLogFile.log" in a cron job?
> BTW, that's going to be a *very* big log file if you do that every 5
> sf-lug mailing list
> sf-lug at linuxmafia.com
> Information about SF-LUG is at http://www.sf-lug.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sf-lug