<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Shutting down the macbook command]]></title><description><![CDATA[<p dir="auto">What command do I use to turn off my macbook via triggercmd? I have already tested several including the windows and cmd commands with "sudo" in the trigger and nothing works, could someone help me?</p>
]]></description><link>https://www.triggercmd.com/forum/topic/719/shutting-down-the-macbook-command</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 04:28:49 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/719.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 May 2020 14:09:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Shutting down the macbook command on Sat, 15 Aug 2020 15:10:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys, here's a script I set up to simulate the standard Mac shutdown. I hope you like it!</p>
<p dir="auto">osascript -e 'tell application "System Events" to click menu item "Shutdown…" of menu 1 of menu bar item "Apple" of menu bar 1 of process "Finder"'</p>
]]></description><link>https://www.triggercmd.com/forum/post/2677</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2677</guid><dc:creator><![CDATA[DecoLMS]]></dc:creator><pubDate>Sat, 15 Aug 2020 15:10:33 GMT</pubDate></item><item><title><![CDATA[Reply to Shutting down the macbook command on Mon, 22 Jun 2020 18:02:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3723">@Ulisses-Honor</a> It's really worked for me, just copy and paste on Gui Command Editor.</p>
]]></description><link>https://www.triggercmd.com/forum/post/2382</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2382</guid><dc:creator><![CDATA[Ulisses Honor]]></dc:creator><pubDate>Mon, 22 Jun 2020 18:02:47 GMT</pubDate></item><item><title><![CDATA[Reply to Shutting down the macbook command on Mon, 22 Jun 2020 18:00:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3515">@Ivan-Freitas</a> ```<br />
osascript -e 'tell app "System Events" to shut down'</p>
<pre><code></code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/2381</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2381</guid><dc:creator><![CDATA[Ulisses Honor]]></dc:creator><pubDate>Mon, 22 Jun 2020 18:00:35 GMT</pubDate></item><item><title><![CDATA[Reply to Shutting down the macbook command on Sat, 27 Jun 2020 16:23:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3515">@Ivan-Freitas</a>, this video might help:  <a href="https://youtu.be/cbjNMyqM4rE?t=44" rel="nofollow ugc">https://youtu.be/cbjNMyqM4rE?t=44</a></p>
<p dir="auto">It shows how to open the sudoers file with the visudo command.  Once you've opened it, press the <strong>i</strong> button to go into edit mode, and press the ESC button to exit edit mode after you've added that line.  Then type <strong>:wq</strong>, and press enter to save and exit.</p>
<p dir="auto">EDIT:  Nevermind.  To shutdown you can use <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3723">@Ulisses-Honor</a>'s osascript command below.</p>
]]></description><link>https://www.triggercmd.com/forum/post/2290</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2290</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 27 Jun 2020 16:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to Shutting down the macbook command on Sun, 31 May 2020 15:44:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> said in <a href="/forum/post/2284">Shutting down the macbook command</a>:</p>
<blockquote>
<p dir="auto">sudoers</p>
</blockquote>
<p dir="auto">I tried to do this configuration, but as I don't understand enough, I don't know how to configure this sudoers</p>
]]></description><link>https://www.triggercmd.com/forum/post/2287</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2287</guid><dc:creator><![CDATA[Ivan Freitas]]></dc:creator><pubDate>Sun, 31 May 2020 15:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to Shutting down the macbook command on Sat, 27 Jun 2020 16:22:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3515">@Ivan-Freitas</a>, these commands shutdown a mac in 60 seconds, or now (immediately):</p>
<pre><code>sudo shutdown -h +60
sudo shutdown -h now
</code></pre>
<p dir="auto">While testing this, you can run the +60 command and be ready to run this command to cancel the shutdown:</p>
<pre><code>sudo killall shutdown
</code></pre>
<p dir="auto">To use the shutdown command with TRIGGERcmd, you'll need to allow it to run without a password prompt.  To do that, add this line to your sudoers file:</p>
<pre><code>ALL ALL=(ALL) NOPASSWD: /sbin/shutdown
</code></pre>
<p dir="auto">You can edit your sudoers file with <strong>visudo</strong> or <strong>nano</strong>.  To use nano, you'll need to switch to the root user first with <strong>sudo su -</strong>, then run <strong>nano /etc/sudoers</strong></p>
<p dir="auto">EDIT:  I stand corrected.  See <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/3723">@Ulisses-Honor</a>'s solution below.  That's much simpler.</p>
]]></description><link>https://www.triggercmd.com/forum/post/2284</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/2284</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 27 Jun 2020 16:22:43 GMT</pubDate></item></channel></rss>