[sf-lug] logging top
Ken Shaffer
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).
Ken
:
> 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.
>>
>> cheers,
>> Sameer
>>
>
> 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
> seconds.
>
> DR
>
>
> _______________________________________________
> sf-lug mailing list
> sf-lug at linuxmafia.com
> http://linuxmafia.com/mailman/listinfo/sf-lug
> Information about SF-LUG is at http://www.sf-lug.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://linuxmafia.com/pipermail/sf-lug/attachments/20100708/dee87e8a/attachment.html>
More information about the sf-lug
mailing list