|
|
Restarting a remote Mac via AppleScript
You can also tell your Mac to sleep by replacing the word 'restart' with the word 'sleep.'
I can confirm that it works quite nicely, as I now cannot SSH into my Mac at home because it is now sleeping! :) Be careful with the shutdown command unless you are certain there is nothing you need to save in the Aqua layer. Shutdown, as a UNIX-layer command, will pull the rug out from everything else. The only thing it does gracefully is offer you the opportunity to delay the actual shutdown to give other users on your Mac the chance to save their work before it actually goes down. You can also have it broadcast a message to other terminals to warn other users. Bear in mind, the only warnings users will receive are broadcast to the Terminal, not to the GUI. If someone is sitting at your Mac at home when you send the shutdown command via SSH to the terminal, that person will be in for a very unpleasant surprise. Makes for a really nasty April Fool's prank on someone...! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.20 seconds |
|