If you want to save the output of a certain command, and furthermore do it at preset time intervals, use logsave:
logsave foo /bin/ls
anaconda-ks.cfg
apache
foo
install.log
install.log.
syslog
and after that do a
more foo
Logsave is useful also because it prints the exact date and time of the event, before and after the command takes place.
Pingback: HowtoMatrix » Save the output of a command using logsave