Date: Mon, 25 Aug 2003 15:32:25 +0100 From: =?iso-8859-1?Q?Marco_Gon=E7alves?= <marco@aces.pt> To: <freebsd-questions@freebsd.org> Subject: Re: Cvsup script question Message-ID: <007a01c36b15$bb0de0c0$6b026b83@marco> References: <002a01c367e1$a1f275b0$04fea8c0@moe> <44ptixyata.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <chowse@charter.net> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007a01c36b15$bb0de0c0$6b026b83>