etc crontab syntax bugΒΆ
A bug that occurs when using crontab:
In the file /etc/crontab the following line works correctly and writes A to /root/cronlog
* * * * * root echo A >> /root/cronlog 2>&1
for some reason this line does not work
* * * * * root echo B &>> /root/cronlog
In bash both commands execute as expected
echo C >> /root/cronlog 2>&1
echo D &>> /root/cronlog
Also escaping percentage signs is necessary or an error will occur.
Both bugs occurred when setting up cron jobs on the main server.