Skip to content

Instantly share code, notes, and snippets.

@mvrilo
Created October 19, 2011 11:49
Show Gist options
  • Select an option

  • Save mvrilo/1298070 to your computer and use it in GitHub Desktop.

Select an option

Save mvrilo/1298070 to your computer and use it in GitHub Desktop.
put mac os x to sleep
#!/bin/bash
osascript << EOT
tell application "System Events"
sleep
end
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment