Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.