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.

I have a cron job that will mail a list of all Google Tasks to my email address daily at 7am. (http://privacylog.blogspot.com/2010/07/api-for-google-tasks.html)

I am running this on my laptop which, like me, is in sleep mode at 7am.

Can I fix this to run after I wake the machine from sleep each day?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

If you use launchd instead of cron, tasks that were supposed to have ran while your Mac was sleeping will run when it wakes up. There's some more info (including usage) available here.

(For what it's worth, Apple recommends using launchd instead of cron, and may even phase out cron at some point in the future.)

share|improve this answer
    
For those who may look here, but are running systems other than OS X, such as Linux, take a look at anacron. –  Dennis Williamson Jul 29 '10 at 15:30

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.