View Full Version : Is it possible to remotely sleep a mac using ssh?
woodsey
Jan 15, 2005, 10:47 PM
I have a PowerMac in my living room which I use to share its dial-up internet connection with the iMac in my bedroom, over ethernet.
I often check email etc. in bedroom just before bed, and am too lazy to return to the living room to sleep the PowerMac.
Is it possible to sleep or shutdown the PowerMac remotely using ssh over the terminal, or any other way?
Westside guy
Jan 16, 2005, 12:05 AM
I bet you can do this with an Applescript. If so you could invoke that from the command line.
I keep meaning to learn it but I keep putting it off... :D
Edit: Here ya go (I tried it, and it works):
osascript -e 'tell application "Finder" to sleep'
Now repeat after me: Google is my friend, Google is my friend, Google ... :D
cluthz
Jan 16, 2005, 09:54 AM
You can also use this command:
sudo shutdown -h
For more info run this in the terminal:
man shutdown
snkTab
Jan 16, 2005, 10:47 AM
lol awesome, this will make me more lazy. if anyone knows how to make my mac feed my fishes if I forget let me know.
Mechcozmo
Jan 16, 2005, 12:21 PM
lol awesome, this will make me more lazy. if anyone knows how to make my mac feed my fishes if I forget let me know.
Make a Mac Fishtank! Linkety (http://www.theapplecollection.com/Collection/MacAquarium/index.shtml) for you!
:)
Westside guy
Jan 16, 2005, 02:23 PM
Just a note - "shutdown" is not the same as "sleep". It completely powers off your computer. Not a problem as long as that's what you're after.
For most folks there's not much reason to completely shut off your computer though (in my opinion anyway).
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.