From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 07:07:25 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 883B016A4D1 for ; Thu, 26 Aug 2004 07:07:25 +0000 (GMT) Received: from smtp801.mail.sc5.yahoo.com (smtp801.mail.sc5.yahoo.com [66.163.168.180]) by mx1.FreeBSD.org (Postfix) with SMTP id 34F5D43D1F for ; Thu, 26 Aug 2004 07:07:25 +0000 (GMT) (envelope-from krinklyfig@spymac.com) Received: from unknown (HELO smogmonster.com) (jtinnin@pacbell.net@64.171.1.210 with login) by smtp801.mail.sc5.yahoo.com with SMTP; 26 Aug 2004 07:07:25 -0000 From: Joshua Tinnin Date: Thu, 26 Aug 2004 00:07:26 -0700 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline To: "FreeBSD-questions" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200408260007.26659.krinklyfig@spymac.com> Subject: crontab question involving cvsup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: krinklyfig@spymac.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 07:07:25 -0000 OK, I have searched the archives, and I can't find that my question has been answered previously, but please forgive me if that's incorrect. I'm using (or rather trying to use) cron to update my ports tree daily. I've tried several different combinations without success, and lately this is what I have in my crontab file: /usr/local/bin/cvsup -g -L 2 /home/krinklyfig/supfiles/ports-supfile && /usr/local/bin/portindex && /usr/local/sbin/portsdb -u It runs as root once a day. What appears to be happening is that the cvsup is happening, but portindex is not, and because of the latter portsdb -u doesn't either. The reason I know cvsup is working is because portindex indicates that the ports tree has been updated if I run it manually later, but running portversion before manually running portindex will not indicate any changes. The cron log doesn't show anything but the commands being executed. So, my question is: is this type of command valid, or should each command be separate? Or is it not working for some other reason? - jt