考虑YEAR,如何指定CRON的时间? [英] How can I specify time in CRON considering YEAR?
本文介绍了考虑YEAR,如何指定CRON的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的任务是在考虑YEAR字段的CRON中指定时间。我如何做到,或者你知道任何东西,可以帮助我在我的linux服务器? thx
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
推荐答案
Crontab(5)文件格式没有YEAR字段。你可以尝试运行一个cron作业@yearly(在新年的00:00),它使用date(1)查看当前年份,并将当前crontab文件更新为适合新的一年。
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.
这篇关于考虑YEAR,如何指定CRON的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文