From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 07:33:41 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 61F7E16A4BF for ; Mon, 25 Aug 2003 07:33:41 -0700 (PDT) Received: from ns.aces.pt (ns.aces.pt [195.22.10.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4301743F93 for ; Mon, 25 Aug 2003 07:33:38 -0700 (PDT) (envelope-from marco@aces.pt) Received: from marco ([195.22.18.246]) by ns.aces.pt (8.10.2/8.10.2) with SMTP id h7PEQ4P14651 for ; Mon, 25 Aug 2003 15:26:04 +0100 Message-ID: <007a01c36b15$bb0de0c0$6b026b83@marco> From: =?iso-8859-1?Q?Marco_Gon=E7alves?= To: References: <002a01c367e1$a1f275b0$04fea8c0@moe> <44ptixyata.fsf@be-well.ilk.org> Date: Mon, 25 Aug 2003 15:32:25 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: 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: Mon, 25 Aug 2003 14:33:41 -0000 Hi, i did some minor alterations to the script by #!/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 /usr/local/sbin/pkgdb -aF /bin/echo /bin/echo "Updated ports:" /usr/local/sbin/portversion | grep "<" # Show only changed ports but strangly, at least for me, is that the 2nd line the output is not = being redirected to /dev/null and if i execute this script i still get = lots of output... ----- Original Message -----=20 From: Lowell Gilbert=20 To: Charles Howse=20 Cc: freebsd-questions@freebsd.org=20 Sent: Friday, August 22, 2003 4:24 PM Subject: Re: Cvsup script question "Charles Howse" writes: > Hi, > I'm cvsup'ing from a script in /usr/local/etc/periodic/daily. > Here 'tis: >=20 > #!/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 >=20 > 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". >=20 > Are those lines in the output of portsdb coming from STDOUT or = STDERR, > or are they completely normal? >=20 > 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 >=20 >=20 >=20 > Will these changes break anything? No. If in doubt, redirect to files instead of to /dev/null. _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"