Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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