Put mac to sleep from commandline

  1. 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 now

    that is working fine but it is not required that the computer completely goes down.

    thanks Randolf Balasus

  2. 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,

  3. On 2007-08-18 15:42:49 +0200, Randy Adamczyk said:

    download this little sleep automator action [1]

    sorry, forgot to paste the link:


  4. Thanks this works very well !!!!! that was exaactly what I need. Greetings Randolf Balasus

  5. 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

Power Manager - automation and energy saving software for Mac OS X

Download Power Manager and start saving.