【发布时间】:2015-01-30 10:05:36
【问题描述】:
需要从早上 8 点到下午 3:30 每 3 分钟安排一次作业。我知道从早上 8 点到下午 3 点怎么做。如何让它持续到下午 3:30?
【问题讨论】:
-
@Kon:你怎么知道他在用 Linux?
标签: linux cron cronexpression
需要从早上 8 点到下午 3:30 每 3 分钟安排一次作业。我知道从早上 8 点到下午 3 点怎么做。如何让它持续到下午 3:30?
【问题讨论】:
标签: linux cron cronexpression
other answer 的想法是正确的,但数字不正确。
这应该可行:
*/3 8-14 * * * command
0-30/3 15 * * * command
第一行从早上 8 点到下午 2:57 每 3 分钟运行一次 command。
第二行从下午 3 点到下午 3 点 30 分每 3 分钟运行一次command。
【讨论】:
除了两条线别无他法
*/3 8-14 * * * command
0-30/3 15 * * * command
【讨论】: