1

I set cron to run script every day using env EDITOR=nano crontab -e where I wrote something like this @daily path/to/sript.script.

Now I want to use anacron to be sure that script is going to be run when I log in if I was logged off at the time when it was scheduled. But I am not sure where to specify that.

I tried something like env EDITOR=nano anacron -e but that didn't work. Also, strange is that man anacron doesn't provide anything. I get this: "No manual entry for anacron"

  • anacron is not an installed utility in OS X. Scheduled Tasks are handled by launchd, cron has been depreciated in OS X. You can also add an app/script to the User's Login Items too. – user3439894 Feb 12 '16 at 17:58
  • What exactly are you trying to do? At the time the script is supposed to run, is your computer powered on and you just logged off or is the computer powered off? – Allan Feb 12 '16 at 18:18
  • Thank you for your answers guys. @Allan I want to be sure that script will run as soon as possible, even if I was logged off or my computer was powered off at the time the script is supposed to run – Petar Popovic Feb 15 '16 at 16:26
1

OS X does not provide anacron.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .