Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: pedwards@valhalla.cs.wright.edu (Phil Edwards)
Subject: Re: suppressing cron mailings...
Date: 1996/04/08	[thread overview]
Message-ID: <4kbveo$nn3@valhalla.cs.wright.edu> (raw)
In-Reply-To: 31693E72.B4B@vfr.interceptor.com

[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<std/disclaimer.h>               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



      reply	other threads:[~1996-04-08  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-08  4:00 suppressing cron mailings Thumper!
1996-04-08  4:00 ` Phil Edwards [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox