From owner-freebsd-questions Thu Jun 24 11: 9:48 1999 Delivered-To: freebsd-questions@freebsd.org Received: from MNSi.Net (e450.mnsi.net [206.48.122.98]) by hub.freebsd.org (Postfix) with SMTP id 89F5914BEE for ; Thu, 24 Jun 1999 11:09:44 -0700 (PDT) (envelope-from wmptl@MNSi.Net) Received: from freebsd31 (dyn124-209.win.mnsi.net [206.48.124.209]) by MNSi.Net (SMI-8.6/SMI-SVR4) with SMTP id OAA29817 for ; Thu, 24 Jun 1999 14:04:53 -0400 Message-Id: <3.0.5.32.19990624140929.007a9cc0@in.mnsi.net> X-Sender: wmptl@in.mnsi.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Thu, 24 Jun 1999 14:09:29 -0400 To: freebsd-questions@freebsd.org From: "Windsor Match Plate and Tool Ltd." Subject: cron difficulties Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG To Whomever May Respond, We are running FreeBSd 2.2.6 release, on a system as described below: -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