两次之间每分钟执行一次 Cronjob
Execute a Cronjob Every Minute Between Two Times
我需要在 8:45am 和 9:50am[=20] 之间每分钟在 crontab 中 运行 一个 bash 脚本=] 的每一天。
代码:
45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 8 * * * /home/pull.sh > /home/logs/pull.log 2>&1
00/50 9 * * * /home/pull.sh > home/logs/pull.log 2>&1
这是正确的吗and/or最有效的方法?
http://www.nncron.ru/help/EN/working/cron-format.htm
根据该网站,您可以这样做:
45-59 8 * * * /home/pull.sh > /home/logs/pull.log 2>&1
我不确定你想用这条线做什么:
00/50 9 * * * /home/pull.sh > home/logs/pull.log 2>&1
我真的不知道那会做什么。
试试这个:
45-59/1 8 * * * /home/pull.sh > /home/pull.log 2>&1
00-50/1 9 * * * /home/pull.sh > /home/pull.log 2>&1
我需要在 8:45am 和 9:50am[=20] 之间每分钟在 crontab 中 运行 一个 bash 脚本=] 的每一天。
代码:
45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 8 * * * /home/pull.sh > /home/logs/pull.log 2>&1
00/50 9 * * * /home/pull.sh > home/logs/pull.log 2>&1
这是正确的吗and/or最有效的方法?
http://www.nncron.ru/help/EN/working/cron-format.htm
根据该网站,您可以这样做:
45-59 8 * * * /home/pull.sh > /home/logs/pull.log 2>&1
我不确定你想用这条线做什么:
00/50 9 * * * /home/pull.sh > home/logs/pull.log 2>&1
我真的不知道那会做什么。
试试这个:
45-59/1 8 * * * /home/pull.sh > /home/pull.log 2>&1
00-50/1 9 * * * /home/pull.sh > /home/pull.log 2>&1