Put mac to sleep from commandline
-
randolf balasus - 18 August 2007
Hello, I want put my apple into the suspend to ram state over the commandline interface. Anybody lnows how to do that?
For instance the computer is playing music and after two hours all applications should stop and the computer should shutdown. Til now I am using
# sleep 120m ; shutdown -h nowthat is working fine but it is not required that the computer completely goes down.
thanks Randolf Balasus
-
Randy Adamczyk - 18 August 2007
i don't know the proper unix command to do this, but i use this as a workaround:
download this little sleep automator action [1] and in automator create a script with it. save it as "application", and you'll be able to execute it from the command line with the "open" command.
so long,
randy -
Randy Adamczyk - 18 August 2007
On 2007-08-18 15:42:49 +0200, Randy Adamczyk said:
download this little sleep automator action [1]
sorry, forgot to paste the link:
http://www.apple.com/downloads/macosx/automator/sleep.htmlrandy
-
randolf balasus - 19 August 2007
Thanks this works very well !!!!! that was exaactly what I need. Greetings Randolf Balasus
-
Calum - 19 August 2007
FWIW, if you still want to do it from the command line, here's one solution: http://www.majid.info/mylos/weblog/2003/12/05-1.html
Download Power Manager and start saving.