- Append a timestamp to the log file every minute
/var/log/cron
. - Append "tick" and "tock" in alternate minutes to
/var/log/cron
.
* * * * * /bin/date --rfc-3339=seconds >> /var/log/cron
*/2 * * * * /bin/echo 'tick' >> /var/log/cron
/var/log/cron
./var/log/cron
.* * * * * /bin/date --rfc-3339=seconds >> /var/log/cron
*/2 * * * * /bin/echo 'tick' >> /var/log/cron