- Joined
- Apr 15, 2007
- Messages
- 262
- Reaction score
- 5
- Points
- 18
Just wondering if it's possible to put the machine to sleep via a shell command.
#!/bin/bash
osascript << EOT
tell application "System Events"
sleep
end
EOT
-$ pmset sleepnow