Jeff Abrahamson on Thu, 25 Jul 2002 11:00:11 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] cron weirdness


I put the following line in my crontab:

17 4 * * *	/bin/tar czf archives/archive-`date "+%Y-%m-%d_%H.%M"`.tgz  gnucash-july 2> /dev/null

and go the following error:

----- Forwarded message from Cron Daemon <root@purple.com> -----

Date: Thu, 25 Jul 2002 04:17:01 +0200
From: root@purple.com (Cron Daemon)
Subject: Cron <finance@diderot> /bin/tar czf archives/archive-`date "+
To: finance@diderot.purple.com

/bin/sh: -c: line 1: unexpected EOF while looking for matching ``'
/bin/sh: -c: line 2: syntax error: unexpected end of file

----- End forwarded message -----

The line is fine if executed at the command prompt. I've seen this
before with commands with embedded backticks. Anyone have a clue what
cron/sh might be complaining about? It seems like it's truncating the
line for some reason.

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>

 The Big Book of Misunderstanding, now in bookstores and on the web:
 <http://www.misunderstanding.net/buystuff.html>

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug