From owner-freebsd-questions@FreeBSD.ORG Tue Jan 17 02:53:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B129916A41F for ; Tue, 17 Jan 2006 02:53:26 +0000 (GMT) (envelope-from jahilliya@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4500943D45 for ; Tue, 17 Jan 2006 02:53:26 +0000 (GMT) (envelope-from jahilliya@gmail.com) Received: by wproxy.gmail.com with SMTP id 68so1334346wri for ; Mon, 16 Jan 2006 18:53:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HRjDrv/cOVfUVkk5FL2PzgpHbm9vbiLVE9Gla0l7fZapmfs5Ls98TwgbCKbzsMO1el3w9Q33uzEqxQKNsgQUAOrowdxWypWcTxvCrzJj5iwis8gS+3bK82Al9YxWYWDz9Yx99eBw9qS5j4lde7bZAjn6NhLBN2PPTI3Cn75eW4E= Received: by 10.65.205.8 with SMTP id h8mr3499745qbq; Mon, 16 Jan 2006 18:53:24 -0800 (PST) Received: by 10.64.181.7 with HTTP; Mon, 16 Jan 2006 18:53:24 -0800 (PST) Message-ID: Date: Tue, 17 Jan 2006 10:53:24 +0800 From: Daniel To: BSD Questions user In-Reply-To: <200601170249.k0H2n23R061778@gilmer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200601170249.k0H2n23R061778@gilmer.org> Cc: freebsd-questions@freebsd.org Subject: Re: unable to build ntp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 02:53:26 -0000 On 1/17/06, BSD Questions user 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, s= o I can dump them to /dev/null, but 'host not found' error messages still s= how 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