CRONTAB syntax error CRONTAB syntax error bash bash

CRONTAB syntax error


Cron needs to escape the % sign - http://www.hcidata.info/crontab.htm

Try it with a backslash:

57 1 * * 2-6  ET=`date --date 'yesterday' +\%Y\%m\%d`;echo $ET