[ale] cron vs. command line
Denny Chambers
dchambers at snapserver.com
Sat Oct 26 11:40:29 EDT 2002
Hi All,
I have put together a simple backup script to back up my home directory
on my development box. I have it scheduled to run in a cron job. The
problem is that what I tested on the command line, does not work in the
cron job. I am sure I am missing something simple here.
Here is the crontab entry:
5 0 * * * $HOME/bin/backup.sh >>
$HOME/logs/backuplog-${HOSTNAME}-$(date +%m-%d-%y).log 2>&1
here is the error i get in my inbox:
Subject: Cron <dchambers at honeybee> $HOME/bin/backup.sh >>
$HOME/logs/backuplog-${HOSTNAME}-$(date +
/bin/sh: -c: line 1: unexpected EOF while looking for matching `)'
/bin/sh: -c: line 2: syntax error: unexpected end of file
is there some thing wrong with this:$(date +%m-%d-%y)
or is there a limit on the command length in a crontab file????
Thanks,
Denny
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list