Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2003 20:42:50 +1100
From:      Tim Robbins <tjr@FreeBSD.ORG>
To:        CHOI Junho <cjh@kr.FreeBSD.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: 5.0 cron problem
Message-ID:  <20030205204250.A12276@dilbert.robbins.dropbear.id.au>
In-Reply-To: <20030205.175730.55903839.cjh@kr.FreeBSD.org>; from cjh@kr.FreeBSD.org on Wed, Feb 05, 2003 at 05:57:30PM %2B0900
References:  <20030205.175730.55903839.cjh@kr.FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030205204250.A12276>