Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎么能告诉 crontab 每 5 分钟运行一次,但从每小时的第二分钟开始。换句话说,我想在minute % 5 = 2.
minute % 5 = 2
例如,我的脚本应该运行在:
08:02 08:07 08:12 08:17 ...
谢谢你的帮助!
有两种可能:
2,7,12,17... command */5 .... sleep 120 ; command
crontab
sleep