[sf-lug] logging top

David Rosenstrauch darose at darose.net
Thu Jul 8 12:22:22 PDT 2010


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




More information about the sf-lug mailing list