<?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[Stacking commands]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I want to turn my pc on using WOL and then open up a game (in one go, using IFTTT). Is there a way to hold a command and trigger it once the pc is turned on and the Trigger CMD client started?</p>
]]></description><link>https://www.triggercmd.com/forum/topic/2120/stacking-commands</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 03:20:46 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/2120.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Apr 2022 14:11:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Stacking commands on Sat, 23 Apr 2022 12:13:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinco" aria-label="Profile: dinco">@<bdi>dinco</bdi></a>, like <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/xander" aria-label="Profile: Xander">@<bdi>Xander</bdi></a> said, WOL needs a second device/computer on your network to turn on your PC.  The script you run on that second device could in theory turn on your PC, then loop until the PC until it's up, then use the <a href="https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now">tcmd</a> command to remotely run a command on the PC.</p>
<p dir="auto">The trick is what to put in the loop to detect whether the Trigger CMD agent started.</p>
<p dir="auto">This is one idea this:</p>
<ul>
<li>Wait 10 seconds</li>
<li>Use <a href="https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now">tcmd</a> to run a script on the PC that runs a command on the original PC that just creates a flag file.</li>
<li>If the flag file is detected, delete it and exit the loop.</li>
</ul>
<p dir="auto">You'd want uncheck this in your profile page if you do that though.  Otherwise you'll get an email saying the command didn't run because the agent isn't started.<br />
<img src="/forum/assets/uploads/files/1650591601094-88b5c88a-d267-492f-86cc-025908202a6b-image.png" alt="88b5c88a-d267-492f-86cc-025908202a6b-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://www.triggercmd.com/forum/post/5736</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5736</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 23 Apr 2022 12:13:43 GMT</pubDate></item><item><title><![CDATA[Reply to Stacking commands on Thu, 21 Apr 2022 14:47:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinco" aria-label="Profile: dinco">@<bdi>dinco</bdi></a> WOL works when one device sends a signal to another on the same network.  For your idea to work, you'd need to run one command on one device and then another command on a different device.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5733</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5733</guid><dc:creator><![CDATA[Xander]]></dc:creator><pubDate>Thu, 21 Apr 2022 14:47:15 GMT</pubDate></item></channel></rss>