<?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[Background Commands not running.]]></title><description><![CDATA[<p dir="auto">Hey <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a>. Really enjoying triggercmd so far. I am experiencing an issue where I am not able to run any "background" commands from a web trigger.</p>
<p dir="auto">Here are some things I have done to troubleshoot:</p>
<ul>
<li>I removed the background services and reinstalled them with a reboot. I did this a couple times.</li>
<li>I checked the logs and I see the commands being received, but then nothing else happens.</li>
<li>I checked to see if the same commands work in foreground mode - they do.</li>
<li>I simplified the commands to just "start notepad" - launches w/ foreground but does nothing with background mode.</li>
<li>I checked services.msc and  confirmed the TriggerCmdAgent is there.</li>
<li>When I installed or removed bg services, node js prompted me with UAC.</li>
<li>I can launch any of the commands from the Command editor GUI. Even if they are background mode.</li>
</ul>
<pre><code>{ trigger: 'notepad-background', id: 'XXXXXXXXXXXXXXXXXXXXX' }
{ trigger: 'notepad-foreground', id: 'XXXXXXXXXXXXXXXXXXXXX' }
Running trigger: notepad-foreground  Command: start notepad
Reported: Command Ran
</code></pre>
<p dir="auto">I am creating a "build machine" and I am using triggercmd to allow a team of software devs the ability to trigger a build any time they want. I would prefer to launch this build process with the background mode enabled.</p>
]]></description><link>https://www.triggercmd.com/forum/topic/3155/background-commands-not-running</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 20:44:10 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/3155.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Nov 2024 15:38:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Background Commands not running. on Fri, 22 Nov 2024 01:32:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/24068">@Adroit-Tester2</a>, the background agent on Windows is meant to run commands that don't do anything with the GUI, like this reboot command:</p>
<pre><code>shutdown /r /t 1
</code></pre>
<p dir="auto">One benefit is the TRIGGERcmdAgent Windows service runs before you login, so you could reboot the PC even if it's not logged in.</p>
<p dir="auto">Background commands run in the context of the TRIGGERcmdAgent Windows service that runs as Local System, which can be of benefit too because it has full access to your PC and it bypasses UAC.</p>
<p dir="auto">Here's a test command you use try in background mode to verify it's working:</p>
<pre><code>echo testing &gt; c:\folder\log.txt
</code></pre>
<p dir="auto">I just tried that and it produced the log.txt file when I ran it in background mode.</p>
<p dir="auto">If you want to see the processes run, I suggest you leave them in foreground mode.  You could still lock the PC after logging it on if you don't want the developers to mess with them.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8319</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8319</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 22 Nov 2024 01:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Background Commands not running. on Wed, 20 Nov 2024 15:42:29 GMT]]></title><description><![CDATA[<p dir="auto">I forgot to mention I am running windows 11 and Windows is updated.<br />
I am running version 1.0.37 of triggercmd agent.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8318</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8318</guid><dc:creator><![CDATA[Adroit Tester2]]></dc:creator><pubDate>Wed, 20 Nov 2024 15:42:29 GMT</pubDate></item></channel></rss>