The following crontab does not work:
# TEST LINE DOES DOT RUN
*/1 * * * * /bin/echo 'test '`/bin/date +%Y-%m-%d` >> /tmp/test
I also tried starting it with:
SHELL=/bin/bash
Update: I thought the backtick characters ` were the villains, but as the answer below clarifies the percentage % was the culprit!
In
/bin/date +%Y-%m-%d
, you need to escape each%
with\
according to this man page: