| 1 | # scripts.mit.edu sample crontab as of SCRIPTS_DATE | 
|---|
| 2 | # To load this crontab, run "cronload crontab" in your cron_scripts directory | 
|---|
| 3 | # (On athena, you must run "add scripts" before cronload) | 
|---|
| 4 |  | 
|---|
| 5 | # This line sets a reasonable default path | 
|---|
| 6 | PATH=/mit/SCRIPTS_USER/cron_scripts:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin | 
|---|
| 7 |  | 
|---|
| 8 | # This line mails the STDOUT and STDERR of every cron script to a person | 
|---|
| 9 | # (can be useful for debugging) | 
|---|
| 10 | # You can always redirect the output of individual commands to /dev/null | 
|---|
| 11 | MAILTO="ATHENA_USER@mit.edu" | 
|---|
| 12 | # If you do not want to receive any mail from cron, use the line below instead | 
|---|
| 13 | #MAILTO="" | 
|---|
| 14 |  | 
|---|
| 15 | # Add your cron lines here: | 
|---|
| 16 |  | 
|---|
| 17 |  | 
|---|
| 18 | # Here's a reminder of the cron line format: | 
|---|
| 19 |  | 
|---|
| 20 | #  * * * * * command to be executed | 
|---|
| 21 | #  - - - - - | 
|---|
| 22 | #  | | | | | | 
|---|
| 23 | #  | | | | ----- day of week (0 - 6) (Sunday=0) | 
|---|
| 24 | #  | | | ------- month (1 - 12) | 
|---|
| 25 | #  | | --------- day of month (1 - 31) | 
|---|
| 26 | #  | ----------- hour (0 - 23) | 
|---|
| 27 | #  ------------- min (0 - 59) | 
|---|
| 28 |  | 
|---|
| 29 | # For example, the following cron line would write "Work harder!" to STDOUT | 
|---|
| 30 | # every 20 minutes from 8am - 5pm on weekdays | 
|---|
| 31 | # (and this message would thus be e-mailed to the address above on each run) | 
|---|
| 32 |  | 
|---|
| 33 | # 0,20,40 8-17 * * 1-5 echo "Work harder!" | 
|---|
| 34 |  | 
|---|
| 35 | # See http://en.wikipedia.org/wiki/Cron (or google for crontab) for more info | 
|---|