From owner-freebsd-current Wed Feb 5 1:44:51 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46D0B37B43E for ; Wed, 5 Feb 2003 01:44:47 -0800 (PST) Received: from smtp03.iprimus.com.au (smtp03.iprimus.com.au [210.50.30.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id A509743FB8 for ; Wed, 5 Feb 2003 01:44:45 -0800 (PST) (envelope-from tim@robbins.dropbear.id.au) Received: from smtp01.iprimus.net.au (210.50.30.70) by smtp03.iprimus.com.au (6.7.010) id 3E3E0A810006E9D0 for current@FreeBSD.ORG; Wed, 5 Feb 2003 20:44:39 +1100 Received: from dilbert.robbins.dropbear.id.au ([210.50.114.69]) by smtp01.iprimus.net.au with Microsoft SMTPSVC(5.0.2195.5600); Wed, 5 Feb 2003 20:44:11 +1100 Received: from dilbert.robbins.dropbear.id.au (85so9gmk8iodulhm@localhost [127.0.0.1]) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6) with ESMTP id h159h8kC012930; Wed, 5 Feb 2003 20:43:27 +1100 (EST) (envelope-from tim@dilbert.robbins.dropbear.id.au) Received: (from tim@localhost) by dilbert.robbins.dropbear.id.au (8.12.6/8.12.6/Submit) id h159gpfC012905; Wed, 5 Feb 2003 20:42:51 +1100 (EST) (envelope-from tim) Date: Wed, 5 Feb 2003 20:42:50 +1100 From: Tim Robbins To: CHOI Junho Cc: current@FreeBSD.ORG Subject: Re: 5.0 cron problem Message-ID: <20030205204250.A12276@dilbert.robbins.dropbear.id.au> References: <20030205.175730.55903839.cjh@kr.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030205.175730.55903839.cjh@kr.FreeBSD.org>; from cjh@kr.FreeBSD.org on Wed, Feb 05, 2003 at 05:57:30PM +0900 X-OriginalArrivalTime: 05 Feb 2003 09:44:34.0121 (UTC) FILETIME=[306EA390:01C2CCFB] Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 05, 2003 at 05:57:30PM +0900, CHOI Junho wrote: [...] > ---------------------- > CVSUP=/usr/local/bin/cvsup -g -L2 -h localhost > CVSUPDIR=/b/FreeBSD/cvsup > > # source sync > 0 */1 * * * $CVSUP $CVSUPDIR/4_7-supfile > /dev/null > 20 */1 * * * $CVSUP $CVSUPDIR/5_0-supfile > /dev/null > 40 */1 * * * $CVSUP $CVSUPDIR/current-supfile > /dev/null > ---------------------- > > When I install this crontab: > > # crontab my-crontab > "my-crontab":0: bad minute > crontab: errors in crontab file, can't install > > "0" means line number. It means variable setting doesn't work... > > I used this crontab over years on 4.[4567]-RELEASE happily. What > happen to cron? I suspected updating procedure(/usr/src/UPDATING) > because my -current desktop(starting from -current snapshot a year > ago) doesn't have such problem. Since revision 1.11 of src/usr.sbin/cron/lib/env.c, you need to put the value of the environment variable inside quotes if it contains any spaces. I suspect that this change of behaviour was unintentional given that the implementation differs from the manual page. I'll investigate and fix it if it's a bug. In the mean time, use something like this instead: CVSUP="/usr/local/bin/cvsup -g -L2 -h localhost" Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message