After long time with version 2.1 I have started migrating to Version 2.5
I have few problems but I stretch the 1st one that is in dead end state.
I have managed to migrate my MODBUS scripts from Linux down to MACOS using modbus-cli.
In a terminal it works great.
In OR Shell Execution with the same path and same parameters it runs:
{insert}
ERROR [Polling thread for sensor: Show_Kitchen_Status 534487]: Could not execute shell command: ~/OpenRemote-Controller/openremote-shell-commands/Relay_On_Off_Status.sh
``
java.io.IOException: Cannot run program “~/OpenRemote-Controller/openremote-shell-commands/Relay_On_Off_Status.sh”: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at org.openremote.controller.protocol.shellexe.ShellExeCommand.executeCommand(Unknown Source)
at org.openremote.controller.protocol.shellexe.ShellExeCommand.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
I have changed the path. I have set the $PATH to include the shell commands library but still no luck.
The sh files are all executables and run also from the home dir smoothly.
Need a help