Crontab sets 18:00 to 09:00

假装没事ソ 提交于 2019-12-04 23:19:47

问题


I just want to set a crontab using that I want to make a program run at every 15 minutes from 18:00 to 09:00
I have given this statement and waited but I don't think it is working

*/15 18-9 * * 1-6  Program_name

Any suggestion would be greatly appreciated


回答1:


I don’t think ranges can wrap around like that. Specify the hour as 0-9,18-23 instead.



来源:https://stackoverflow.com/questions/2592185/crontab-sets-1800-to-0900

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!