參考內容推薦

How to create macOS startup jobs with crontab, er, launchd

In summary, the macOS launchd facility appears to be a replacement for the standard Unix cron/crontab facility. I believe you can enable crontab ...

What is the difference between cron and launchd?

launchd does a lot more than cron. In addition to running programs at certain times, it can also run them based on other triggers.

osx

Prefer launchd. For non-graphical scripts, launchd is Apple's preferred approach. cron is available but no longer recommended by Apple.

Use launchd instead of crontab on your Mac - - Bas

This will be a short guide on how to use launchd in a simple form to replace a crontab job. In my case I am automating the backup of my Plex server.

Scheduling Timed Jobs

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

Should I use cron or launchd for running terminal commands on ...

iirc cron won't catch up for a launched job if your mac is sleeping, but launchd does have that feature where it will catch up upon wake.

The Complete Guide to Cron and Launchd on macOSLinux

Although launchd is the preferred method in macOS, the cron method still works in macOS as well. cron is a Linux utility that schedules a ...

Using Launch Agents to schedule automations on your Mac

What is the benefit of this compared to a cron-job? There's a good overview of launchd vs cron here. Basically it is just more powerful/ ...

Cron or Launchd? : rMacOS

The preferred way to add a timed job is to use launchd. Although it is still supported, cron is not a recommended solution. It has been deprecated in favor of ...

Mac 上的Cron 還是Launchd? : rcommandline

Launchd 會給你更多控制權:你可以排程Mac 開機、關機,可能還有休眠時間。不過,我已經超久沒用Mac 了。

Maclaunchdvscron

Insummary,themacOSlaunchdfacilityappearstobeareplacementforthestandardUnixcron/crontabfacility.Ibelieveyoucanenablecrontab ...,launchddoesalotmorethancron.Inadditiontorunningprogramsatcertaintimes,itcanalsorunthembasedonothertriggers.,Preferlaunchd.Fornon-graphicalscripts,launchdisApple'spreferredapproach.cronisavailablebutnolongerrecommendedbyApple.,Thiswillbeashortguideonhowtouselaunchdinasi...