How to do a cron job every 72 minutes

后端 未结 7 1028
时光取名叫无心
时光取名叫无心 2020-12-06 10:18

How would I get a cron job to run every 72 minutes? Or some not so pretty number like that?

7条回答
  •  感情败类
    2020-12-06 11:00

    Use at (man at). Have your app or startup script calculate a startup time 72 minutes in the future and schedule itself to run again before it starts working.

    Available on windows xp and vista too.

    Here's an example for gnu/linux: at -f command.sh now + 72 minutes

提交回复
热议问题