84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
工作时间内:09:00 - 17:00 一小时执行一次工作时间外:18:00 - 08:00 两小时执行一次周六,周日全天都是非工作时间
这个用crontab能否实现?
认证高级PHP讲师
# 工作时间内 * 9-17/1 * * 1,2,3,4,5 /path/to/your/script # 工作时间外 * 18-8/2 * * 6,0 /path/to/your/script
* 9-17/1 * * 1,2,3,4,5 /etc/init.d/yourcmd yourcmdparam* 18-8/2 * * 1,2,3,4,5 /etc/init.d/yourcmd yourcmdparam* */2 * * 6,0 /etc/init.d/yourcmd yourcmdparam
* 9-17/1 * * 1,2,3,4,5 /etc/init.d/yourcmd yourcmdparam
* 18-8/2 * * 1,2,3,4,5 /etc/init.d/yourcmd yourcmdparam
* */2 * * 6,0 /etc/init.d/yourcmd yourcmdparam
Link should be OK, see the link above
* 9-17/1 * * 1,2,3,4,5 /etc/init.d/yourcmd yourcmdparam
* 18-8/2 * * 1,2,3,4,5 /etc/init.d/yourcmd yourcmdparam
* */2 * * 6,0 /etc/init.d/yourcmd yourcmdparam
Link
should be OK, see the link above