From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5e71e49b188142e0 X-Google-Attributes: gidfee84,public From: pedwards@valhalla.cs.wright.edu (Phil Edwards) Subject: Re: suppressing cron mailings... Date: 1996/04/08 Message-ID: <4kbveo$nn3@valhalla.cs.wright.edu>#1/1 X-Deja-AN: 146441247 distribution: world references: <31693E72.B4B@vfr.interceptor.com> organization: the top of Solsbury Hill. newsgroups: comp.unix.osf.osf1 [cc'd to poster] With <31693E72.B4B@vfr.interceptor.com>, it seems Thumper! (thumper@vfr.interceptor.com) sez: + I can't seem to get my crontab entry to suppress sending me mail. + + I've tried + + 7 1 * * * /usr/sbin/ntpdate tick.usno.navy.mil 2>&1 Well, that point stderr at the same place as stdout. Since stdout is mailed to you along with the "usual" stderr, that really doesn't change anything. + 7 1 * * * /usr/sbin/ntpdate tick.usno.navy.mil 2>/dev/null >/dev/null That would seem to work. You really shouldn't need that last redirection, though; the 2> should do it. + and even tried by adding a + MAILTO=/dev/null + line in the file. Eeeeeuhhhh? I've never heard of anything close to that before. Either 1) you have a strange variant of OSF/1, or 2) you're doing it wrong, or 3) I've just not seen it before yet. :-) You might also consider using the -s flag on ntpdate(8), which will log via the syslog rather than writing to stdout. This would effectively solve the problem, unless what's being output are error messages. Luck++; Phil -- #include The gods do not protect fools. Fools finger pedwards@gamma.cs.wright.edu are protected by more capable fools. email pedwards@valhalla.cs.wright.edu -Larry Niven