bug fix: '* 23-7/1 * * *'表示'23点到7点间的每1个小时的任意分钟执行一次', 所以正确的写法应该是'0 23-… #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
文档的结构清晰,内容详细,排版优良,对我的帮助很大,感谢作者!
我在操作的时候遇到一个问题:
实验环境:
CentOS release 6.6 (Final)
如何复现:
cat >>/etc/crontab<<<'* 18-19/1 * * * root date>>/root/cron_test.txt'
while :; do tail -f /root/cron_test.txt; done;
输出如下:
Mon Oct 17 18:50:01 CST 2016
Mon Oct 17 18:51:01 CST 2016
Mon Oct 17 18:52:01 CST 2016
Mon Oct 17 18:53:01 CST 2016
Mon Oct 17 18:54:01 CST 2016
结论:
文中"* 23-7/1 * * *"没有"23点到7点每小时执行一次", 而是"23点到7点任意分钟执行一次", 这貌似是一个bug……, 应该改成"0 23-7/1 * * *"
再次感谢 @me115 !