With Openhab, I had a small script in ‘/scripts/ringDoorbelNormal.sh’ that triggered a command on another server to ring my ip-phones. This went fine.
With OH2, the script is being triggered but not executed properly.
In the script, /etc/openhab2/scripts/ringDoorbelNormal.sh, I’m having now:
touch /tmp/ringtest.txt
sshpass -p 'MYPWD' ssh MYUSER@REMOTESRV /scripts/ringPhonesNormal.sh
The file in tmp is being created, and i’m getting an entry in my log for the script:
../logs/openhab.log:2016-10-04 17:22:13.377 [INFO ] [lipse.smarthome.io.net.exec.ExecUtil] - executed commandLine '/etc/openhab2/scripts/ringDoorbelNormal.sh'
But no phones do ring. When I run it manually from cli, the phones start ringing.
Is it possible that this is an problem with the user that runs the command?