plf3!
Cron Reference



Sample lines in a crontab:

Time & Command: Explanation:
* * * * * date > ~/dates.log 2>&1 Every minute, generate a timestamp with 'date' command and append to ~/dates.log.
TODO: Explain the 2nd part.
0,30 * * * * rm ~/dates.log Delete ~/dates.log at the top and bottom of the hour (so it doesn't waste too much space).TODO: Explain better.

How to edit your crontab:

Method:Steps:Comment:
1.) Edit manually
  1. #crontab -l > some_filename <Enter>
  2. #emacs some_filename
  3. #crontab some_filename
<-- 'l' as in 'lambda'
<-- or use pico/nano/vi/vim/etc instead of emacs.
<-- load into your crontab.
2.) Edit via crontab
  1. #crontab -e
open editor, edit, save to crontab all at once
Note: make sure your syntax is correct!).