I've begun playing with launchd to replace some cron jobs we've used
in the past. I ran into a problem with the StartCalendarInterval key
in the launchd plist file. I couldn't get my jobs to launch
automatically at the appointed time. I finally traced it down to the
Month key. If I put 5 (currently it is May) in the value, the job
does not get launched. If I put in 4, it does. Are months numbered
from 0-11 rather than 1-12 as they are in cron, or am I
misunderstanding something? A sample plist file is below.
Just a sample that does NOT launch unless the Month key is set to 4
(we are currently in May):