Hacker News new | ask | show | jobs
by fingerlocks 1069 days ago
Or you can use the built-in and more powerful commands: pmset and caffeinate.

E.g. you can prevent sleeping until another process exists, or initiate sleep or shutdown.