Dim
(Angelos)
July 17, 2017, 7:49am
2
I believe (that in openHABian) the OH2 process runs as user openhab
.
Try to troubleshoot this user with regards to shell commands.
Change its login shell (currently disabled in /etc/passwd
), login as openhab and try to execute the script.
Take a look at some older discussions:
I wrote a linux script to reboot my odroid running ubuntu.
I set up an item and a rule to run it.
The script is:
#!/bin/bash
sudo reboot "System is going down for reboot"
If i run this directly from the shell, it reboots my odroid.
If i run this via a rule:
executeCommandLine("bash /etc/openhab2/ShutDown.sh")
It says it ran in the openhab log, but it never reboots.
I have the permissions set on this thing as: rwsrwxrwx. The owner and the group is openhab.
It used to be rwxrwxrwx. A f…
Hi,
i have a problem with the exec binding. My configuration is:
Switch HTPC "Start/Stop" (Status, Network) {wol="192.168.1.255#08:60:65:E5:96:39", exec="OFF:ssh htpc@192.168.1.201 shutdown -p now" }
The command executes (wol works just fine) but the ssh command gives following error:
The authenticity of host '192.168.1.201 (192.168.1.201)' can't be established.
ECDSA key fingerprint is 53:08:a3:18:e4:34:4d:25:a0:aa:33.
Are you sure you want to continue connecting (yes/no)?
Does anyone kno…
2 Likes