From owner-freebsd-current Wed Feb 5 2: 0:30 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 524D637B401; Wed, 5 Feb 2003 02:00:27 -0800 (PST) Received: from daemon.kr.FreeBSD.org (daemon.kr.freebsd.org [211.176.62.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D7DF43F3F; Wed, 5 Feb 2003 02:00:26 -0800 (PST) (envelope-from cjh@kr.FreeBSD.org) Received: from gradius.wdb.co.kr (daemon [211.176.62.31]) by daemon.kr.FreeBSD.org (Postfix) with ESMTP id E60028F611; Wed, 5 Feb 2003 19:00:22 +0900 (KST) Received: from localhost (localhost [127.0.0.1]) by gradius.wdb.co.kr (8.12.6/8.12.6) with ESMTP id h15A0Jcq049458; Wed, 5 Feb 2003 19:00:19 +0900 (KST) (envelope-from cjh@kr.FreeBSD.org) Date: Wed, 05 Feb 2003 19:00:18 +0900 (KST) Message-Id: <20030205.190018.83553208.cjh@kr.FreeBSD.org> To: tjr@FreeBSD.ORG Cc: current@FreeBSD.ORG Subject: Re: 5.0 cron problem From: CHOI Junho In-Reply-To: <20030205204250.A12276@dilbert.robbins.dropbear.id.au> References: <20030205.175730.55903839.cjh@kr.FreeBSD.org> <20030205204250.A12276@dilbert.robbins.dropbear.id.au> Organization: Korea FreeBSD Users Group X-URL: http://www.kr.FreeBSD.org/~cjh X-Mailer: Mew version 3.1.51 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Ok, the problem solved. Thanks. crontab(5) page of 4.7-RELEASE and 5.0-RELEASE cite the same thing about variable assignment: The name string may also be placed in quote(single or double, but matching) to preserver leading, trailing or inner blanks. I think the current implementation(r1.11 of env.c) is right according to the manual. But 4-stable is still r1.7.2.1, so it'll be good to wait until MFC... From: Tim Robbins Subject: Re: 5.0 cron problem Date: Wed, 5 Feb 2003 20:42:50 +1100 > 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 -- CHOI Junho KFUG FreeBSD Project Web Data Bank Key fingerprint = 1369 7374 A45F F41A F3C0 07E3 4A01 C020 E602 60F5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message