Created
November 11, 2012 01:07
-
-
Save NapoleonWils0n/4053236 to your computer and use it in GitHub Desktop.
macosx: shutdown mac from the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#-----------------------------------------------# | |
# shutdown mac | |
#-----------------------------------------------# | |
# Shutdown immediately | |
sudo shutdown -h now | |
# Restart immediately | |
sudo shutdown -r now | |
# Shutdown at 9 pm | |
sudo shutdown -h 21:00 | |
# shutdown in 5 mins | |
sudo shutdown -h +5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment