| Article Index |
|---|
| 1. The Script |
Mac OS X is based on BSD and FreeBSD. Due to this fact Linux-Support.com contains some nuts and bolds related to Mac OS X.
This article describes how to put Mac OS X to sleep / hibernate mode by script.
1. The Script
When you are sitting in front of an iMac or compatible piece of hardware, it is quite easy to send your system to sleep mode by utilizing the graphical desktop.
To do the same job at remote systems you have to execute the following command line.
# put Mac OS X to sleep mode sudo osascript -e 'tell application "System Events" to sleep'




