From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 05:42:15 2003 Return-Path: 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 0C11516A4BF for ; Thu, 21 Aug 2003 05:42:15 -0700 (PDT) Received: from remt24.cluster1.charter.net (remt24.cluster1.charter.net [209.225.8.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B8743F93 for ; Thu, 21 Aug 2003 05:42:14 -0700 (PDT) (envelope-from chowse@charter.net) Received: from [66.168.145.25] (HELO moe) by remt24.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 130170693 for freebsd-questions@freebsd.org; Thu, 21 Aug 2003 08:42:12 -0400 From: "Charles Howse" To: Date: Thu, 21 Aug 2003 07:42:07 -0500 Message-ID: <002a01c367e1$a1f275b0$04fea8c0@moe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: Cvsup script question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 12:42:15 -0000 Hi, I'm cvsup'ing from a script in /usr/local/etc/periodic/daily. Here 'tis: #!/usr/local/bin/bash Echo Echo "Output of cvsup:" /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile Echo Echo "Output of portsdb:" /usr/local/sbin/portsdb -Uu Echo Echo "Output of portversion:" /usr/local/sbin/portversion It works, but (1) produces a ton of output, (2) I'm seeing a lot of lines in the output of portsdb that say, "(some port) non-existent, dependency list incomplete". Are those lines in the output of portsdb coming from STDOUT or STDERR, or are they completely normal? How about we alter the script as follows to keep the output down a little? #!/usr/local/bin/bash /usr/local/bin/cvsup -g -L 0 /etc/cvsupfile # Keep quiet except for errors /usr/local/sbin/portsdb -Uu > /dev/null # Hopefully, show only errors Echo Echo "Updated ports:" /usr/local/sbin/portversion | grep "<" # Show only changed ports Will these changes break anything? Thanks, Charles