Why I've got no crontab entry on OS X when using vim?

前端 未结 12 1784
执念已碎
执念已碎 2020-12-07 07:41

I would like to use cron on my Mac. I choose it over launchd, because I want to be able to use my new knowledge on Linux as well. However, I cannot seem to get

12条回答
  •  天涯浪人
    2020-12-07 08:10

    The use of cron on OS X is discouraged. launchd is used instead. Try man launchctl to get started. You have to create special XML files that define your jobs and put them in a special place with certain permissions.

    You'll usually just need to figure out launchctl load

    http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/launchctl.1.html

    http://nb.nathanamy.org/2012/07/schedule-jobs-using-launchd/

    Edit

    If you really do want to use cron on OS X, check out this answer: https://superuser.com/a/243944/2449

提交回复
热议问题