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!