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

    voice commands or cli doesn't works anymore

    Instructions
    2
    5
    250
    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.
    • A
      alain
      last edited by

      Hi,
      my commands doesn't works , neither with website or on command line
      i try this
      triggercmdagent -t firefox -c kali

      regards

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @alain
        last edited by Russ

        @alain, for remotely executing your commands using a command, I recommend switching to the tcmd Go utility. That said, you need to get it working from the website first.

        Can you confirm the agent is still running?
        If it is running, you might learn something from the debug.log file in the ~/.TRIGGERcmdData directory.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • A
          alain
          last edited by

          thanks for replies Russ
          yes i think my triggercmdagent is working well

          here is my command

          triggercmdagent -t firefox -c kali

          Run installdaemon.sh to install the triggercmdagent daemon so it runs during boot
          Daemon install: false
          Logging in with saved token.
          Checking if the 5e4e6687b2275d00193c6347 computer exists.
          This computer exists in your account.
          Tokenfile: /root/.TRIGGERcmdData/token.tkn
          ComputerIDfile: /root/.TRIGGERcmdData/computerid.cfg
          Logging in with saved token to run foreground tasks.
          Write backup completed.
          Initiated command adds
          Initiated command removals

          |> Now connected to https://www.triggercmd.com.
          ___/ For help, see: http://bit.ly/2q0QDpf
          (using sails.io.js node SDK @v1.1.13)
          Connected at: Thu Feb 20 2020 16:50:24 GMT+0100 (heure normale d’Europe centrale)

          { message: 'Subscribed to 5e4e6687b2275d00193c6347!' }
          { message: 'Subscribed to 5e4e6687b2275d00193c6347!' }

          and my Json

          [
          {"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
          {"trigger":"Editor","command":"nano","ground":"foreground","voice":"edition","allowParams": "false"},
          {"trigger":"Firefox","command":"/usr/bin/firefox","ground":"background","voice":"firefox","allowParams": "false"},
          {"trigger":"yum update","command":"yum -y update","ground":"background","voice":"yum update","allowParams": "false"},
          {"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"}
          ]

          regards

          RussR 1 Reply Last reply Reply Quote 0
          • RussR
            Russ @alain
            last edited by Russ

            @alain, I see you're trying to use this method.

            I meant to replace that method with this one because it's faster, more reliable, and more consistent across platforms.

            I just put a note on that old article to refer people to the tcmd Go utility article.

            Would you mind trying that?

            I think you'll want to download the Linux 64bit version. Copy it to /usr/local/bin so it's in your PATH, rename it to tcmd, and make it executable with chmod +x /usr/local/bin/tcmd. Then your command will be:

            tcmd -t firefox -c kali
            

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • A
              alain
              last edited by

              thanks Russ,
              i'll try this method
              regards

              1 Reply Last reply Reply Quote 0
              • First post
                Last post