From owner-freebsd-questions Thu Jun 24 11:12:17 1999 Delivered-To: freebsd-questions@freebsd.org Received: from eddie.incantations.net (unknown [204.180.122.38]) by hub.freebsd.org (Postfix) with ESMTP id 3896614C40 for ; Thu, 24 Jun 1999 11:12:13 -0700 (PDT) (envelope-from thanatos@eddie.incantations.net) Received: from localhost (thanatos@localhost) by eddie.incantations.net (8.8.8/8.8.5) with SMTP id NAA04038 for ; Thu, 24 Jun 1999 13:12:12 -0500 (CDT) Date: Thu, 24 Jun 1999 13:12:12 -0500 (CDT) From: Jason Hudgins Cc: freebsd-questions@FreeBSD.ORG Subject: Re: cron difficulties In-Reply-To: <3.0.5.32.19990624140929.007a9cc0@in.mnsi.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I wouldn't disable mail for cron... I'd just pipe the output of the offending cron jobs into /dev/null. That's what I do, works fine. > -486 DX2-50, 128k cache > -20megs 20pin RAM, (4 fours, four ones) > -3.2gig quantum ATA drive > -8x Mitsumi Atapi CD-Rom > > Using Software Packages: > -Bind 8. > -Qualcomm Qpopper 2.53 > -Apache Webserver 1.3.6 > > We have a problem with cron, and are not sure how to fix it. We have two > scripts that run every two minutes, the problem being that every two > minutes root is getting mail about it. How does one turn of cron's mailto > ability, bear in mind that we're using FreeBSD 2.2.6, and that the manpages > were of little help. I've tried calling cron with the following, (none > worked): > cron mailto="" > cron mailto="." > cron mailto="/dev/null" > cron mailto= > cron -l (which someone had suggested from irc, illegal flag anyhow) > > If anyone out there knows how turn off the mail feature of cron altogether > that would be nice, if not for just the cron jobs that are causing > annoyances, a copy of the /etc/crontab follows appends this note. > > Nathan Vidican > Windsor Match Plate & Tool Ltd. > wmptl@mnsi.net (personal: unix_usr@fcmail.com) > > > # /etc/crontab - root's crontab for FreeBSD > # > # $Id: crontab,v 1.13 1996/01/06 22:21:37 ache Exp $ > # From: Id: crontab,v 1.6 1993/05/31 02:03:57 cgd Exp > # > SHELL=/bin/sh > PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin > HOME=/var/log > # > #minute hour mday month wday who command > # > */5 * * * * root /usr/libexec/atrun > # > # rotate log files every hour, if necessary > 0 * * * * root /usr/sbin/newsyslog > # > > # do daily/weekly/monthly maintenance > 0 2 * * * root /etc/daily 2>&1 | > sendmail root > 30 3 * * 6 root /etc/weekly 2>&1 | > sendmail root > 30 5 1 * * root /etc/monthly 2>&1 | > sendmail root > # > > # wmptl log clean-out > # the second entry here causing the most difficulty, also tried changing > # the 'who' part of the table to /dev/null, (didn't work) > 30 15 * * * root sh /etc/rmlogs > */2 * * * * root sh /etc/rmpopper > > # wmptl system backup to be recorded to cdrom > 0 20 * * 1 root sh /etc/backupweekly > 0 20 20 * * root sh /etc/backupmonthly > > # wmptl daily check routine for email sent to wmptl@mnsi.net > # set to check email every morning at 8:30AM, and forward to > transcon@wmptl.net > # uncomment the following line to enable this feature, (connection to internet > # must also be activated, 'ppp -auto -alias mnsi' ) > 30 8 * * * root popclient -u wmptl -p > -o /var/mail/transcon in.mnsi.net > > > # time zone change adjustment for wall cmos clock, > # See adjkerntz(8) for details. > 1,31 0-4 * * * root /sbin/adjkerntz -a > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Jason Hudgins http://www.incantations.net/~thanatos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message