I know that i should user other techniques than a cleartext-password here, i will do that later.
The result of this is “command not found”. If i use commands without parameters it works.
Example:
If i change ‘sudo shutdown -h now’ to ‘hostname’, it shows me the hostname of the remote host.
If i change ‘hostname’ to ‘hostname -i’, it shows me ‘command not found’.
I tried to set @@ for every space, but no function. Any Idea?
Have you tried to create a .sh script with those commands inside?
Put it into the scripts directory and give openhab user ownership.
This way you can call it inside the exec command with just the absolute path and there should be no characters problem.