From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 07:15:22 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 4374B16A4FB for ; Thu, 26 Aug 2004 07:15:22 +0000 (GMT) Received: from mail.procreditbank.bg (mail.procreditbank.bg [212.95.179.198]) by mx1.FreeBSD.org (Postfix) with SMTP id 924F943D2F for ; Thu, 26 Aug 2004 07:15:20 +0000 (GMT) (envelope-from i.tanusheff@procreditbank.bg) Received: (qmail 8102 invoked from network); 26 Aug 2004 07:15:17 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 26 Aug 2004 07:15:17 -0000 Received: from proxy.procreditbank.bg ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 70947-830 for ; Thu, 26 Aug 2004 10:15:16 +0300 (EEST) Received: (qmail 8091 invoked from network); 26 Aug 2004 07:15:16 -0000 Received: from unknown (HELO PROCREDI99E694) (192.168.1.254) by mail.procreditbank.bg with SMTP; 26 Aug 2004 07:15:16 -0000 From: "Ivailo Tanusheff" To: Date: Thu, 26 Aug 2004 10:15:16 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <200408260007.26659.krinklyfig@spymac.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcSLO2nxSiB/5gGTRxijmFHKEdZUtwAANv8A X-Virus-Scanned: by amavisd-new + Clam Antivirus at procreditbank.bg Message-Id: <20040826071520.924F943D2F@mx1.FreeBSD.org> 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 07:15:22 -0000 -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Joshua Tinnin Sent: Thursday, August 26, 2004 10:07 AM To: FreeBSD-questions Subject: crontab question involving cvsup 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 Hi, I'll suggest you to use /usr/local/sbin/portsdb -uU instead of /usr/local/bin/portindex && /usr/local/sbin/portsdb -u It works perfect with me :) Regards, Ivailo Tanusheff