Cron fails on single apostrophe

前端 未结 3 1537
一整个雨季
一整个雨季 2021-02-08 19:37

The following does work as expected:

date +\'%d-%b-%Y-%H-%M\'

28-Sep-2009-14-28

But none of the following 4 entries from crontab are working.

* *         


        
3条回答
  •  离开以前
    2021-02-08 19:52

    You're using a syntax not supported by /bin/sh. Try invoking your preferred shell and passing the command as an argument.

提交回复
热议问题