使用Crontab每隔星期五安排任务 [英] Using Crontab to schedule a task every other friday
本文介绍了使用Crontab每隔星期五安排任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何使用crontab在1月的每隔一个星期五的5:30 AM运行脚本?这是我每个星期五都运行的内容.
How would I use crontab to run a script at 5:30AM every other Friday in January? This is the what I have if I ran it every Friday.
30 5 * 1 5
如果我每隔星期五都做一次,则将/2放在哪里?是吗?
If I did every other friday, where do i put the /2? Is it:
30 5 */2 1 5
或:
30 5 * 1 5/2
推荐答案
检查此解决方案此处.您也可以使用 http://www.cronmaker.com/制作克朗.希望有帮助.
check this solution here but I would recommend using two crons one for the first week and second for the third week as mentioned here.You could als use http://www.cronmaker.com/ to build crons.Hope it helps.
这篇关于使用Crontab每隔星期五安排任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文