[LBo] crontab syntax error

Dave Lerner 7dvbyfk02 at sneakemail.com
Mon Dec 18 15:00:20 CET 2006


This crontab entry works:

*/5 * * * * date >>/var/tmp/crontest.log 2>&1

-----

This one doesn't:

*/5 * * * * echo "`date +%Y%m%d_%H%M%S`: testing"
>>/var/tmp/crontest.log 2>&1

Here's the error message (received by email):

Subject: Cron <root at ...> echo "`date +
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Date: Sat, 16 Dec 2006 10:10:01 -0500

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

-----

Any ideas on how to make that work?




More information about the QnA mailing list