When running long tests on macOS, the machine may go to sleep if you don’t touch it.
There’s a built-in command that keeps it awake.

caffeinate

Or run it with a command:

caffeinate -i ./run_test.sh

Let your Mac drink some coffee ☕️
Interesting and useful.

What to read next

Previous / Next
Previous: caffeinate – 讓你的 Mac 保持清醒 Next: 用 GPU 做 vLLM Benchmark 的一些心得
More like this
Subscribe via RSS: Macro · Tech