How To Force OS X To Shut Down

Discussion in 'macOS' started by jsauger, Sep 7, 2009.

  1. jsauger macrumors newbie

    Joined:
    Sep 6, 2009
    #1
    Hello. I have an iMac which I have programmed to shut down automatically every night at 11:00PM. Inevitably, someone leaves Safari open (despite my repeated grumblings :mad:). Every morning I go to the computer to find it has not shut down, but instead presents me with a dialog box saying the computer could not shut down because Safari prevented it.

    Is there a way, maybe a script, which will force all apps to close and allow the computer to shut down. I am not concerned if it causes data loss because a file was left open.

    Thanks for any help.
     
  2. jrmt macrumors newbie

    Joined:
    Aug 28, 2008
    #2
    If you're happy using cron, then creating a crontab with:

    00 23 * * * pmset sleepnow

    will cause a sleep at 11pm each night. I prefer sleeps to full shutdowns.
     

Share This Page