Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 1999 13:12:12 -0500 (CDT)
From:      Jason Hudgins <thanatos@eddie.incantations.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: cron difficulties
Message-ID:  <Pine.BSF.3.96.990624131122.2646A-100000@eddie.incantations.net>
In-Reply-To: <3.0.5.32.19990624140929.007a9cc0@in.mnsi.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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)
> 
> <start of /etc/crontab>
> # /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
> <censored> -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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990624131122.2646A-100000>