标签: cron crontab
如何将cron设置为每天早上6点运行,除了星期天?
试着用这个:
0 6 * * 1-6 /path to script
但是它在早上6点和上午11:30执行。
每周使用1-6是否正确?
答案 0 :(得分:0)
这 http://en.wikipedia.org/wiki/Cron
day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)