Cvsup script question
freebsd-questions-local at be-well.no-ip.com
Fri Aug 22 08:37:39 PDT 2003
"Charles Howse" <chowse at charter.net> writes:
> I'm cvsup'ing from a script in /usr/local/etc/periodic/daily.
> Here 'tis:
> Echo "Output of cvsup:"
> /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile
> Echo "Output of portsdb:"
> /usr/local/sbin/portsdb -Uu
> Echo "Output of 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
> /usr/local/bin/cvsup -g -L 0 /etc/cvsupfile # Keep quiet except for
> /usr/local/sbin/portsdb -Uu > /dev/null # Hopefully, show only
> 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.
More information about the freebsd-questions