zlacker

[parent] [thread] 1 comments
1. bhatti+(OP)[view] [source] 2025-08-01 13:20:19
`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.

replies(1): >>martin+Fk2
2. martin+Fk2[view] [source] 2025-08-02 06:56:53
>>bhatti+(OP)
oh wow... 10 years on MacOS and I had no idea this is a thing
[go to top]