From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 07:19:07 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 F15D416A4CE for ; Thu, 26 Aug 2004 07:19:07 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E64A43D2F for ; Thu, 26 Aug 2004 07:19:07 +0000 (GMT) (envelope-from subhro.kar@gmail.com) Received: by mproxy.gmail.com with SMTP id v30so221845rnb for ; Thu, 26 Aug 2004 00:19:04 -0700 (PDT) Received: by 10.38.206.56 with SMTP id d56mr154189rng; Thu, 26 Aug 2004 00:19:03 -0700 (PDT) Received: by 10.38.206.18 with HTTP; Thu, 26 Aug 2004 00:19:03 -0700 (PDT) Message-ID: Date: Thu, 26 Aug 2004 12:49:03 +0530 From: Subhro Kar To: krinklyfig@spymac.com In-Reply-To: <200408260007.26659.krinklyfig@spymac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200408260007.26659.krinklyfig@spymac.com> cc: FreeBSD-questions Subject: Re: crontab question involving cvsup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Subhro Kar List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 07:19:08 -0000 First of all, you need to read the manual page for cvsup. It is clearly stated that the option -L shows the amount of verbosity cvsup maintains. If you are running it from inside a script, then either you have to reduce the verbosity to 1 ie, the command will be cvsup -g -L 1 supfile OR redirect the output to some file (if you want to look into it later) or to /dev/null to discard it. Secondly, You can always set up multiple crontabs. But since you are using && (ie doo only if prev was successful), that would works if the output of cvsup is properly dealt with. Regards S. On Thu, 26 Aug 2004 00:07:26 -0700, Joshua Tinnin wrote: > 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 > _______________________________________________ > 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" > -- Subhro Sankha Kar School of Information Technology Block AQ-13/1 Sector V ZIP 700091 India