Date: Tue, 17 Jan 2006 10:53:24 +0800 From: Daniel <jahilliya@gmail.com> To: BSD Questions user <bsdq@gilmer.org> Cc: freebsd-questions@freebsd.org Subject: Re: unable to build ntp Message-ID: <ba5e78ea0601161853y516801a9q79f64b2fcb1aee6a@mail.gmail.com> In-Reply-To: <200601170249.k0H2n23R061778@gilmer.org> References: <200601170249.k0H2n23R061778@gilmer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/17/06, BSD Questions user <bsdq@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ba5e78ea0601161853y516801a9q79f64b2fcb1aee6a>
