/usr/bin/top -b -d 1 -p 99 -n 999999999999 | \
/bin/grep --line-buffered Cpu > /var/log/CPU.log &
Will generate a log, at one second intervals, of the CPU load to the file '/var/log/CPU.log'. You can start this at boot in your distribution's appropriate script (e.g., '/etc/rc.d/rc.local'). You can change the interval for the samples, by changing the '-d' value on top. For example, '-d 5' will take samples at 5 second intervals.
Last edited by macemoneta; 05-21-2005 at 08:56 PM.