Crontab requires escaping any % signs

Posted on May 17, 2017 at 10:08 am

Crontab requires escaping any % signs, so this will not work:

0 0 * * *   root    /root/script.sh "%DATE%"

After escaping any % signs, it will work just fine:

0 0 * * *   root    /root/script.sh "\%DATE\%"

Other Posts

Updated Posts