سؤال

I want to edit my crontab file to schedule a script. Where do I find it?

هل كانت مفيدة؟

المحلول

If you don't want to use launchd, you can edit your crontab as you would do on any unix systems :

crontab -e

Or, you can use a GUI software like CronniX.

نصائح أخرى

In Mac OS X Lion the user crontabs are stored in /var/at/tabs. In the past they were located in /var/cron/tabs.

You should use crontab -e to interact with these in general, but knowing the location is useful for when you want to restore them from a backup of your disk, or something similar.

The OS X way is to use launchctl to run jobs at a time.

For ease of use there are GUIs called Launch Control and Lingon.

It should be noted that if you aren't accustomed to using vim (the default crontab editor) then you can specify your editor as follows:

export VISUAL=nano; crontab -e
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى apple.stackexchange
scroll top