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

Cron entry quandry



I can't figure out why the following cron entry does not work. The lines have been wrapped for email.
I typically create separate script files but this one was simple enough for a one liner.


*/1 * * * * /usr/local/bin/mysqldump --all-databases | /usr/bin/gzip \
> /home/hsas_db_backups/hsas_DB_backup_`/bin/date "+%Y-%m-%d_%H:%M:%S"`.sql.gz



I keep getting the following error which seems like the line is being truncated at just after the `+'. Is there some limitation to line length in crontab? I happen to be running 3.5 Release on this particular box.


ERROR:
From root_(_at_)_xxx Mon Nov 8 12:26:01 2004
Date: Mon, 8 Nov 2004 12:26:01 -0600 (CST)
From: root_(_at_)_xxx (Cron Daemon)
To: root_(_at_)_xxx
Subject: Cron <root_(_at_)_tufguy1> /usr/local/bin/mysqldump --all-databases | /usr/bin/gzip > /home/hsas_db_backups/hsas_DB_backup_`/bin/date "+
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/bin:/sbin:/usr/bin:/usr/sbin>
X-Cron-Env: <HOME=/var/log>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>


/bin/sh: no closing quote






Thanks,

--
Scott A. Gerhardt, P.Geo.
Gerhardt Information Technologies



Visit your host, monkey.org