0

I would like to run a script at wakeup. So my laptop is sleeping, I open the lid, and the script should run immediately or within the minute after wakeup. This script should run at startup as well, as that is essentially the same situation.

How can I run a cronscript at either wakeup and startup?

SPRBRN
  • 1,230
  • 1
    See https://apple.stackexchange.com/questions/27036/possible-to-run-scripts-on-sleep-and-wake – Scot Apr 11 '18 at 14:24

1 Answers1

1

You cannot run a cron task at wakeup. It is possible to run a script at wake with some third party utilities. This thread is old, but probably still relevant.

Possible to run scripts on sleep and wake?

lbutlr
  • 1,133