How would I get a cron job to run every 30 minutes?

前端 未结 6 1231
鱼传尺愫
鱼传尺愫 2020-12-04 07:36

I\'m looking to add a crontab entry to execute a script every 30 minutes, on the hour and 30 minutes past the hour or something close. I have the following, but

6条回答
  •  感情败类
    2020-12-04 07:46

    If your cron job is running on Mac OS X only, you may want to use launchd instead.

    From Scheduling Timed Jobs (official Apple docs):

    Note: Although it is still supported, cron is not a recommended solution. It has been deprecated in favor of launchd.

    You can find additional information (such as the launchd Wikipedia page) with a simple web search.

提交回复
热议问题