TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Riccardo Cereser
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Riccardo Cereser

    @Riccardo Cereser

    0
    Reputation
    6
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Riccardo Cereser Unfollow Follow

    Latest posts made by Riccardo Cereser

    • RE: Cannot execute shell scripts: Wrong json syntax?

      @russ Thanks, actually the comma in the end is a typo I’ve added just in the code snippets of the post. I’ve moved the scripts in a different folder, and the problem persist if a place the full path. However I have a new finding: I cannot launch any of those scripts from the terminal unless I enter in the exact folder. If I enter the full path like in your example, I get a message that the file does not exist. If I enter in the folder and simply type the file name, it works.

      So I wonder how can I configure the JSON file to navigate to the folder and then run the script? Or anything else I could try ?

      posted in Raspberry Pi
      Riccardo CereserR
      Riccardo Cereser
    • Cannot execute shell scripts: Wrong json syntax?

      Hi, first of all I love this service. So thank you for building Triggercmd!

      Below 2 of my several attempts to triggers 2 scripts (they work if I launch them via SSH or the Rasbian GUI). It seems form the Triggercmd dashboard that the commands are running when triggered, and the reboot and shutdown ones actually do what they are supposed to. However, I have no luck running any shell scripts. I've also moved them from desktop to the root folder, but it didn't help. What can that be? Is it an issue with the syntax?

      [
        {"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
       {"trigger":"shutdown","command":"shutdown now","ground":"background","voice":"shutdown hours","allowParams": "false"},
       {"trigger":"Change numbers","command":"\/root\/key_stroke.sh","ground":"background","voice":"change numbers","allowParams": "false"},
       {"trigger":"Show hours","command":"\/root\/hours_launcher.sh","ground":"background","voice":"show hours","allowParams": "false"},
      
      ]
      
      [
        {"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
       {"trigger":"shutdown","command":"shutdown now","ground":"background","voice":"shutdown hours","allowParams": "false"},
       {"trigger":"Change numbers","command":"/root/key_stroke.sh","ground":"background","voice":"change numbers","allowParams": "false"},
       {"trigger":"Show hours","command":"/root/hours_launcher.sh","ground":"background","voice":"show hours","allowParams": "false"},
      
      ]
      
      posted in Raspberry Pi
      Riccardo CereserR
      Riccardo Cereser