[Gllug] Cron error

Dylan dylan at dylan.me.uk
Tue Apr 19 19:41:22 UTC 2005


On Tuesday 19 Apr 2005 20:33 pm, Ian Northeast wrote:
> Dylan wrote:
> > 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
>
> (snip)
>
> "%" is meaningful in a crontab entry and has to be escaped with a "\"
> if you really mean a "%". See man 5 crontab.

Thanks - hadn't realised it would still be meaningful inside the command 
substitution. Still, I've created a pair of wrapper scripts now.

Dylan

>
> Regards, Ian

-- 
"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