On 1/17/06, BSD Questions user <[EMAIL PROTECTED]> wrote:
> Thanks everyone for the help.  For the archive:
> I went to /usr/src/contrib/ntp/ntpdate and edited ntpdate.c.  I searched for
> 'host found' and changed the stderror to stdout.  I then went to 
> /usr/src/usr.sbin/ntp and performed a make install clean.  Problem solved; 
> the new 'host found' messages now go to stdout, just like all the other 
> messages, so I can dump them to /dev/null, but 'host not found' error 
> messages still show up as mail to root.
>
> Brad

As cron generally uses /bin/sh as the shell (set near the top of
/etc/crontab) you could have used
/usr/sbin/ntpdate -s pool.ntp.org 2>/dev/null
instead of
 /usr/sbin/ntpdate -s pool.ntp.org >/dev/null
and I believe you could also extend it to 2>/dev/null > /dev/null
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to