source: branches/locker-dev/locker/bin/crontab @ 1523

Last change on this file since 1523 was 1521, checked in by mitchb, 14 years ago
Send cronjob mail to the user who signed up a locker by default Previously, we set up crontabs to send mail to lockername@mit.edu. This was fine when scripts didn't support non-user lockers. It's not necessarily a fine assumption in the case of group lockers that the address is appropriate (or even exists). We could send mail to the scripts user, but that only works if the user is signed up for mail_scripts. Instead, we'll default it to the user who signed the locker up for cron_scripts (the same logic mail_scripts uses for the initial procmailrc) and tell them to change it if it should go elsewhere when they set up their crontab. Also move the crontab template to bin instead of deploy so that it can be under revision control. Finally, correct a whitespace error in the ASCII art (reported by kaduk).
File size: 1.3 KB
Line 
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
6PATH=/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
11MAILTO="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
Note: See TracBrowser for help on using the repository browser.