Re: crontab and command expansion problem

2004-04-12 Thread D. Clarke
Isaac Claymore wrote: WEEK_DAY=`date +\%A` 30 23 * * * mount /backup && mysqldump --password=FOOBAR --all-databases > /backup/alldb-${WEEK_DAY}.sql; umount /backup It's been working on RH system, but the Debian cron keeps refusing to do command expansion on WEEK_DAY, i.e. the script produces a fi

Re: crontab and command expansion problem

2004-04-12 Thread Isaac Claymore
On Mon, Apr 12, 2004 at 09:57:18AM -0500, Dave Sherohman wrote: > On Wed, Apr 07, 2004 at 10:34:06AM +0800, Isaac Claymore wrote: > > WEEK_DAY=`date +\%A` > > 30 23 * * * mount /backup && mysqldump --password=FOOBAR --all-databases > > > /backup/alldb-${WEEK_DAY}.sql; umount /backup > > > > It's

Re: crontab and command expansion problem

2004-04-12 Thread Dave Sherohman
On Wed, Apr 07, 2004 at 10:34:06AM +0800, Isaac Claymore wrote: > WEEK_DAY=`date +\%A` > 30 23 * * * mount /backup && mysqldump --password=FOOBAR --all-databases > > /backup/alldb-${WEEK_DAY}.sql; umount /backup > > It's been working on RH system, but the Debian cron keeps refusing to do command