unable to build ntp
Daniel
jahilliya at gmail.com
Mon Jan 16 18:53:26 PST 2006
On 1/17/06, BSD Questions user <bsdq at gilmer.org> 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
More information about the freebsd-questions
mailing list