Crontab File Example
Example of a crontab file:
* * * * * /path_to_script_or_command
| | | | |
| | | | weekday (0-6) (Sunday=0)
| | | month (1-12)
| | day (0-31)
| hour (0-23)
minute (0-59)
Crontab Tips:
Many versions of cron support the use of "*/n," which will run a command at every nth increment of time, instead of at nth time.
For example:
*/5 * * * * getmail
This runs getmail every five minutes, not at the fifth
minute of every hour.
To disable email confirmation upon cronjob completion:
>/dev/null 2>&1
or
&> /dev/null