Posts & Tags About
Richard Dallaway's Blog Avatar
Richard Dallaway's Blog

Keeping long running macOS jobs active

With long-running jobs I want my laptop to stay awake until the job finishes:

$ time caffeinate script-name-here

When the script finishes, caffeinate with finish, and the laptop will eventually go to sleep.

* * *

I use #reference for commands and knowledge I keep having to look up!

reference software
17 Mar 2026
Subscribe to get a weekly digest of posts in your inbox