cron job that will never execute

前端 未结 5 1016
耶瑟儿~
耶瑟儿~ 2020-12-05 22:22

Is there any way to create a cron expression for not running the job at all. I though of using this expression :

0 0 0 1 1 ? 3099

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 22:54

    Comment it out — put # sign in front of it. Very useful, especially if you're afraid you'll forget about your changes by the year 3099.

    Another possibility is to make it execute dummy command, like true rm -rf /.

提交回复
热议问题