Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* suppressing cron mailings...
@ 1996-04-08  4:00 Thumper!
  1996-04-08  4:00 ` Phil Edwards
  0 siblings, 1 reply; 2+ messages in thread
From: Thumper! @ 1996-04-08  4:00 UTC (permalink / raw)


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
7 1 * * * /usr/sbin/ntpdate tick.usno.navy.mil 2>/dev/null >/dev/null
and even tried by adding a 
MAILTO=/dev/null
line in the file.

None of it works, and I've run out of ideas offhand.

Thanks!
--
Thumper!                                    Leporidae Extraordinhare
thumper@vfr.interceptor.com      http://www.interceptor.com/~thumper
                "Life is to achieve the impossible"



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: suppressing cron mailings...
  1996-04-08  4:00 suppressing cron mailings Thumper!
@ 1996-04-08  4:00 ` Phil Edwards
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Edwards @ 1996-04-08  4:00 UTC (permalink / raw)


[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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-04-08  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-08  4:00 suppressing cron mailings Thumper!
1996-04-08  4:00 ` Phil Edwards

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