6 ms·
`caffeinate -s <script>` should do the trick. You don't need anything else. `caffeinate -d` will disable the shutting down of display. `caffeinate -w <pid>` w
by bhattisatish 1y ago
`caffeinate -s <script>` should do the trick. You don't need anything else.
`caffeinate -d` will disable the shutting down of display.
`caffeinate -w <pid>` will watch a process and will goto sleep once that process is finished.
- martin82 1y agooh wow... 10 years on MacOS and I had no idea this is a thing