Browse Source

put hostname in mail subject; jbernard@tater.mines.edu

OPENBSD_2_2
deraadt 27 years ago
parent
commit
3eb5cff301
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/etc/crontab

+ 4
- 4
src/etc/crontab View File

@ -1,4 +1,4 @@
# $OpenBSD: crontab,v 1.6 1997/07/07 23:19:41 downsj Exp $
# $OpenBSD: crontab,v 1.7 1997/08/18 06:12:51 deraadt Exp $
# #
# /var/cron/tabs/root - root's crontab # /var/cron/tabs/root - root's crontab
# #
@ -16,6 +16,6 @@ HOME=/var/log
#*/1 * * * * /usr/bin/newsyslog -m #*/1 * * * * /usr/bin/newsyslog -m
# #
# do daily/weekly/monthly maintenance # do daily/weekly/monthly maintenance
30 1 * * * /bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | mail -s "daily output" root
30 3 * * 6 /bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | mail -s "weekly output" root
30 5 1 * * /bin/sh /etc/monthly 2>&1 | tee /var/log/monthly.out | mail -s "monthly output" root
30 1 * * * /bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | mail -s "`/bin/hostname` daily output" root
30 3 * * 6 /bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | mail -s "`/bin/hostname` weekly output" root
30 5 1 * * /bin/sh /etc/monthly 2>&1 | tee /var/log/monthly.out | mail -s "`/bin/hostname` monthly output" root

Loading…
Cancel
Save