[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] cron vs. command line
- Subject: [ale] cron vs. command line
- From: dchambers at snapserver.com (Denny Chambers)
- Date: Sat, 26 Oct 2002 10:40:29 -0500
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.