如何安排 cron 作业每一个半小时运行一次?
Possible Duplicate:
How can I set cron to run certain commands every one and a half hours?
I know that every two hours is:
* */2 * * * command-to-run
but how do I schedule a cron
job to run every hour and a half?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将其作为两个 cron 作业来完成:
这具有在甚至不支持
/2
类型语法的古老系统上工作的优点。You can do this as two cron jobs:
This has the advantage of working on even ancient systems that don't support the
/2
-type syntax.我认为您需要两个每三个小时运行一次的 cronjobs,并且间隔 1.5 小时。
I think you would need two cronjobs that run every three hours and are offset by 1.5 hours.