TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • S

      I want to be able to trigger an Alexa routine from a command line with the triggercmdagent installed on my Raspberry Pi

      Raspberry Pi
      • • • sparker
      8
      0
      Votes
      8
      Posts
      1.6k
      Views

      XanderX

      I use CMDNOWND for this. https://dennisbabkin.com/cmdnownd/

      You pop it in the cmd line like this: cmdnownd "D:\Libraries\Documents\batchfile.bat" and it suppresses the appearance of the cmd window. Just place the exe in your path. I keep it in the Windows folder itself.
      scrsht_cmdnownd.png

    • David CoulsonD

      Email says command didn't run, but it did.

      General Discussion
      • • • David Coulson
      3
      0
      Votes
      3
      Posts
      95
      Views

      RussR

      @David-Coulson, I fixed it. Now you won't get these "TRIGGERcmd - Your command didn't run" emails if the trigger was from Home Assistant.

      05213127-87ef-4be4-8f7a-ca4b3ae145f3-image.png

      Thanks again for reporting the problem.

    • RussR

      TRIGGERcmd setup on Google Assistant

      Google Home
      • • • Russ
      4
      1
      Votes
      4
      Posts
      2.0k
      Views

      Nuno GomesN

      @Russ It´s working. Thank You.

    • Asit MishraA

      Firest time setting up, oauth failure

      General Discussion
      • • • Asit Mishra
      3
      0
      Votes
      3
      Posts
      52
      Views

      Asit MishraA

      @Russ Thanks!

    • Brad Magri-OlsonB

      Background Service Stopping

      General Discussion
      • • • Brad Magri-Olson
      2
      0
      Votes
      2
      Posts
      22
      Views

      RussR

      @Brad-Magri-Olson, thank you for reporting the issue.

      I'm on version 1.0.54 and so far I'm not able to reproduce the issue.

      Can you try upgrading to 1.0.54? I tried downgrading my agent and I still couldn't reproduce it.

      Also, can you tell me what background command you're running?
      Also, what antivirus software do you use? I wonder if that's killing the service.

    • RussR

      How to use Off Command

      Instructions
      • • • Russ
      30
      0
      Votes
      30
      Posts
      57.0k
      Views

      RussR

      @Yoni, thanks for letting me know. I'll make it case-insensitive in the next version.

    • J

      Batch file run by trigger behaves differently than run locally?

      Windows
      • • • JoshuaJSlone
      3
      0
      Votes
      3
      Posts
      131
      Views

      Carol ClarkC

      This is one of those old-fashioned Windows batch bugs that only manifests after interactive operations are discontinued.

      Your.bat is launched in a non-interactive session by TRIGGERcmd. Even if you say "foreground," there isn't a true console connected, so anything that thinks it's a tty may silently misbehave. The reason your script gets beyond taskkill but never reaches the restart is because TIMEOUT is infamous for its ability to either quit instantly or block strangely when there is no interactive terminal.

      it also explains why there isn't a window: Unless you specifically force a visible cmd.exe session, TRIGGERcmd is not generating one.

      Avoiding TIMEOUT in this situation is the solution. It spins up its own process with a suitable wait handle, thus wrapping it with start/wait works. For the same reason, ping 127.0.0.1 -n X works; console state is irrelevant. If you really want to view output, using cmd /c or cmd /k manually is a good alternative.

      Additionally, ensure that the program.exe is launched using the whole path rather than just the working directory. Since C:\Windows\System32 is often used as cwd when triggers execute, relative paths will fail silently.

      In summary, it's not a TRIGGERcmd problem or a permissions issue. Batch + non-interactive Windows execution is used. It will act the same as if you ran it locally if you change the TIMEOUT and use complete paths.

    • Kevin 0K

      OAuth support for MCP server

      MCP
      • • • Kevin 0
      4
      0
      Votes
      4
      Posts
      147
      Views

      Kevin 0K

      @Russ Awesome! Thank you so much. Hopefully OpenAI will support your submitted app!