[Gllug] Cron error

Dylan dylan at dylan.me.uk
Tue Apr 19 19:29:16 UTC 2005


Hi All,

I have the following two lines in my crontab (excuse wrapping):

05 3  * * * root  /srv/nfs/data/install/patcher.sh 
>/srv/nfs/data/install/patcherlog_`date +%F` 2>&1
00 5  * * 1 root  /srv/nfs/data/backup.dars/diff.sh 
> /srv/nfs/data/backup.dars/difflog_`date +%F` 2>&1

The first should run the patcher.sh script at 0305 every day, and the 
second the diff.sh script at 0500 on Mondays. When I issue either:

/srv/nfs/data/install/patcher.sh >/srv/nfs/data/install/patcherlog_`date 
+%F` 2>&1

or

/srv/nfs/data/backup.dars/diff.sh 
> /srv/nfs/data/backup.dars/difflog_`date +%F` 2>&1

on the console or in a terminal, they run as expected. However, I get an 
error mail from cron complaining of an unexpected end of line and 
missing second `. Where am I going wrong?

Dylan
-- 
"I see your Schwartz is as big as mine" 
                                  -Dark Helmet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list