Skip site navigation (1)Skip section navigation (2)
Date:      22 Aug 2003 11:24:49 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        "Charles Howse" <chowse@charter.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Cvsup script question
Message-ID:  <44ptixyata.fsf@be-well.ilk.org>
In-Reply-To: <002a01c367e1$a1f275b0$04fea8c0@moe>
References:  <002a01c367e1$a1f275b0$04fea8c0@moe>

next in thread | previous in thread | raw e-mail | index | archive | help
"Charles Howse" <chowse@charter.net> writes:

> 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?

No.  If in doubt, redirect to files instead of to /dev/null.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ptixyata.fsf>