From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 16:30:36 2004 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 AA46416A4CE for ; Thu, 26 Aug 2004 16:30:36 +0000 (GMT) Received: from raadradd.homeunix.org (bwv189.neoplus.adsl.tpnet.pl [83.29.245.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4064543D4C for ; Thu, 26 Aug 2004 16:30:36 +0000 (GMT) (envelope-from radek@raadradd.com) Received: by raadradd.homeunix.org (Postfix, from userid 1001) id 8590CA52F; Thu, 26 Aug 2004 18:30:41 +0200 (CEST) Date: Thu, 26 Aug 2004 18:30:41 +0200 From: Radek Kozlowski To: Lucas Holt Message-ID: <20040826163041.GC25551@werd> References: <200408260007.26659.krinklyfig@spymac.com> <20040826034220.65118714@localhost> <200408260109.12229.krinklyfig@spymac.com> <412E0193.6080904@daleco.biz> <6E48C9AA-F777-11D8-82AF-000A95EFF4CA@foolishgames.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <6E48C9AA-F777-11D8-82AF-000A95EFF4CA@foolishgames.com> User-Agent: Mutt/1.5.6i cc: krinklyfig@spymac.com cc: freebsd-questions@freebsd.org Subject: Re: crontab question involving cvsup 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, 26 Aug 2004 16:30:36 -0000 On Thu, Aug 26, 2004 at 11:48:53AM -0400, Lucas Holt wrote: > Here is my setup which works: > > crontab -e yeilds > 0 1 * * * /bin/sh /root/bin/port.sh 2>&1 | mail root > > port.sh contains: > #!/bin/sh > > /usr/local/bin/cvsup /etc/ports-supfile > /usr/local/sbin/portsdb -Uu > /usr/local/sbin/portversion -v | /usr/bin/grep "<" portversion -vl "<" would give the same results. Also, you might want to give portindex a try, which will do the same part as portsdb -U, but noticeably faster. -Radek