TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Command to shutdown mac

    Alexa
    2
    5
    216
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Elmer VegaE
      Elmer Vega
      last edited by

      Hello, what type of command in MAC should I place in trigger to turn off the computer? I use sudo shutdown -h now and it doesn't work. Help

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @Elmer Vega
        last edited by Russ

        @Elmer-Vega, this command worked for me:

        osascript -e 'tell application "Finder"' -e 'shut down' -e 'end tell'
        

        There's also a command in the built-in Examples list that works.

        Russell VanderMey

        Elmer VegaE 1 Reply Last reply Reply Quote 0
        • Elmer VegaE
          Elmer Vega @Russ
          last edited by

          @Russ Hello thank you very much!
          I copy all this command and paste it only ?

          RussR 1 Reply Last reply Reply Quote 0
          • RussR
            Russ @Elmer Vega
            last edited by

            @Elmer-Vega, yes. Or find shutdown in examples.

            Russell VanderMey

            Elmer VegaE 1 Reply Last reply Reply Quote 0
            • Elmer VegaE
              Elmer Vega @Russ
              last edited by

              @Russ Mister thank u a lot! 🙂

              1 Reply Last reply Reply Quote 1
              • First post
                Last post