How can I specify time in CRON considering YEAR?

前端 未结 4 1613
长情又很酷
长情又很酷 2021-01-02 01:55

My task is to specify time in CRON considering YEAR field. How can i do it, or do u know any stuff which can help me on my linux server? thx

4条回答
  •  温柔的废话
    2021-01-02 02:27

    Crontab (5) file format has no YEAR field. You could try running a cron job @yearly (at 00:00 on New Year's day) which looks at the current year using date(1) and updates the current crontab file to one appropriate for the new year.

提交回复
热议问题