A command-line MacOS sleep program (like SleepNow)
Traditional unix-style installation:
make Zzz
sudo make install
- Is
/usr/local/bin
in your$PATH
? If not, you can define it in your~/.profile
Alternatively, you can use Homebrew to do the installation:
- If needed, install brew on your mac.
brew install Zzz
Want to put your mac to sleep? Type 'Zzz' and it will immediately sleep (and, of course, it can be awakened in the usual way.)