You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a trailing slash on the -Dexec.garden parameter makes it impossible to execute scripts.
Log:
12-09-2017 16:17:42.873
WARN
Could not execute request: /usr/local/HaBridge/bin//ha-105.sh 192.168.8.14 off with message: Cannot run program "/usr/local/HaBridge/bin//ha-105.sh": error=2, No such file or directory
It appears the program is prepending the script execution with a / (it does this using exec:https://ha-105.sh as well) and then joining that (strings?) to the garden path. Java should be able to resolve this path more robustly.
It looks like the code doing this is at line 47 of ComandHome.java:
Having a trailing slash on the -Dexec.garden parameter makes it impossible to execute scripts.
Log:
Jar execution:
/usr/local/bin/java -Djava.net.preferIPv4Stack=true -Dconfig.file=/usr/local
/HaBridge/data/habridge.config -Dexec.garden=/usr/local/HaBridge/bin/ -jar /usr/l
ocal/HaBridge/ha-bridge-5.0.0.jar
Note the trailing slash on the /bin/ folder.
The script execute command:
ha-105.sh 192.168.8.14 off
It appears the program is prepending the script execution with a / (it does this using exec:https://ha-105.sh as well) and then joining that (strings?) to the garden path. Java should be able to resolve this path more robustly.
It looks like the code doing this is at line 47 of ComandHome.java:
You can skip this custom logic by just using java File objects (or Paths, but those are needlessly complex for this), like this:
The text was updated successfully, but these errors were encountered: