@Russ now i know the problem. it was the !# in line 1. I forgot the !
Latest posts made by TI_Gaming_TV
-
RE: PI Hole command not workingposted in General Discussion
-
RE: PI Hole command not workingposted in General Discussion
#/bin/bash case "$1" in "on") pihole enable ;; "off") pihole disable ;; *) echo "Run this with on or off as the parameter." exit 1 ;; esac -
RE: PI Hole command not workingposted in General Discussion
@Russ sry. The ;; weren’t copied because I used the iPhone photo scan. That’s not the problem
-
RE: PI Hole command not workingposted in General Discussion
root@DietPi:~# cat / root/. TRIGGERcmdData/pihole_on_off.sh #/bin/bash case "$1" in "on") pihole enable "off") pihole disable *) echo "Run this with on or off as the parameter." exit 1 ;; esac -
RE: PI Hole command not workingposted in General Discussion
I needed to change file permissions.
Now i get this:/root/.TRIGGERcmdData/pihole_on_off.sh: line 2: syntax error near unexpected token '§'in\r' 'root/. TRIGGERcmdData/pihole_on_off.sh: line 2: 'case "$1" in -
PI Hole command not workingposted in General Discussion
I followed all the instructions given by Russ. The trigger on and off are going to my pi (i can see it over the console). Parameter off was send, but he pihole_on_off.sh file not working do not send pihole enable (same with on).
-
RE: Cant install background agentposted in General Discussion
I changed in the installdaemon.sh the code to this:
find / root/TRIGGERcmd-Agent -type d -name "src" | grep /src | while read dname; do /root/TRIGGERcmd-Agent/src env node $dname/agent. js --daemoninstall /bin/sh $dname/daemonmqr.sh --add $HOME/ . TRIGGERcmdData
-
RE: Cant install background agentposted in General Discussion
I changed some lines in daemoninstall.sh and it works now
-
RE: Cant install background agentposted in General Discussion
When i try this: /root/TRIGGERcmd-Agent/src/installdaemon.sh
I get this: find: ‘/usr/*/triggercmdagent’: No such file or directory
Failed to enable unit: Unit file triggercmdagent.service does not exist.
Unit triggercmdagent.service could not be found. -
RE: Cant install background agentposted in General Discussion
This is not existing:
/usr/share/triggercmdagent/app/src/installdaemon.sh