On Mon, Mar 10, 2003 at 02:52:34PM +0200, Bigbrother wrote:
> 
> Hi friends,
> 
> Recently I put into my crontab the following line
> 
> 4 0 */10 * * /usr/bin/tar -cyf /backup/lab.`date "+%d%m%Y"`.tar.bz /lab
> 
> But although I can execute the command into my shell, crond refuses to
> execute and send me an email saying:
> 
> <<Syntax error: EOF in backquote substitution>>
> 
> 
> What am I doing wrong? I suspect that my problem relies on having a tcsh
> as my default shell, but crontab perhaps is running a different shell.

Crontab treats '%' characters specially --- see crontab(5).  It will
automatically replace a '%' character with a newline, as a method of
being able to include multiline shell input into the crontab file.

To get a literal '%', type '\%'.

        Cheers,

        Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to