Changeset 1576


Ignore:
Timestamp:
Jun 16, 2010, 12:26:51 PM (14 years ago)
Author:
geofft
Message:
cronload: Warn if no MAILTO= line is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/bin/cronload

    r1564 r1576  
    3232fi
    3333athrun scripts scripts-ssh "$lname" /usr/local/bin/cronload "$1" "$cwd" 2>/dev/null
     34if ! grep -q "^MAILTO=" "$1"; then
     35    echo "WARNING: You have no MAILTO= variable set. This means any"
     36    echo "cron errors will go to $lname@scripts.mit.edu (your mail_scripts"
     37    echo "account), which is almost certainly not what you want!"
     38    echo "Please add a MAILTO= line, e.g., MAILTO=${EMAIL:-${ATHENA_USER:-$USER}@mit.edu},"
     39    echo "to your crontab. If you do not want to receive errors, set"
     40    echo 'MAILTO="".'
     41fi
Note: See TracChangeset for help on using the changeset viewer.