I just migrated to Openhab 3 and upgrade my java to 11.
In my Openhab 2.5, I had the following line in a rule to send a Pianobar command to a remote computer.
executeCommandLine("sudo -u pi ssh pi@10.10.231.241 pianobar")
Under Openhab 3 and Java 11, I get the following message:
2021-02-05 07:20:54.103 [WARN ] [rg.openhab.core.io.net.exec.ExecUtil] - Error occurred when executing commandLine ‘[sudo -u pi ssh pi@10.10.231.241 pianobar]’
java.io.IOException: Cannot run program “sudo -u pi ssh pi@10.10.231.241 pianobar”: error=2, No such file or directory
I suspect it is a syntax error but could use a little help fixing it.
Thanks in advance.