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

Command to shutdown mac

Alexa
2
5
223
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.
  • E
    Elmer Vega
    last edited by Dec 21, 2022, 7:40 PM

    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

    R 1 Reply Last reply Dec 21, 2022, 11:42 PM Reply Quote 0
    • R
      Russ @Elmer Vega
      last edited by Russ Dec 21, 2022, 11:54 PM Dec 21, 2022, 11:42 PM

      @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

      E 1 Reply Last reply Dec 22, 2022, 2:26 AM Reply Quote 0
      • E
        Elmer Vega @Russ
        last edited by Dec 22, 2022, 2:26 AM

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

        R 1 Reply Last reply Dec 22, 2022, 3:44 AM Reply Quote 0
        • R
          Russ @Elmer Vega
          last edited by Dec 22, 2022, 3:44 AM

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

          Russell VanderMey

          E 1 Reply Last reply Dec 22, 2022, 4:47 AM Reply Quote 0
          • E
            Elmer Vega @Russ
            last edited by Dec 22, 2022, 4:47 AM

            @Russ Mister thank u a lot! 🙂

            1 Reply Last reply Reply Quote 1
            1 out of 5
            • First post
              1/5
              Last post