According to the launchd specs, when using the StartCalendarInterval option: "Unlike cron which skips job invocations when the computer is asleep, launchd will start the job the next time the computer wakes up."

But what if I want it to skip the invocation? ie. is there are way to make launchd behave like cron in this regard?

link|improve this question
feedback

1 Answer

If your program (or a script wrapping round the program) knows when it ought to be run, it could check the system clock when it is run, and, if not in a reasonable window around that time, exit immediately.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.