[lug] cron and date command
David L. Anselmi
anselmi at anselmi.us
Wed Mar 8 21:52:39 MST 2006
D. Frye wrote:
> On Wed, Mar 08, 2006 at 02:36:52PM -0500, Gordon Golding wrote:
[...]
> } 0 * * * * /home/BACKUPS/Backup_to_Disk2.bsh name`date +%y%m%d` 1>/home/BACKUPS/name`date +%y%m%d`.log 2>/home/BACKUPS/name`date +%y%m%d`.err
> My recollection is that the '%' is a reserved character in the crontab
> file. This is based on a problem that I was bitten by back in 2001, and
> I don't recall where I found the information at. You *might* be able to
> use the standard backslash to escape the character and have it treated
> as a literal.
David is right (now that you mention it I got bit the same way once).
And backslash is the way to escape a %. crontab(5) has the details
(it's (5), not (1)).
Dave
More information about the LUG
mailing list