I had several instances of executeCommandLine that worked in OH2.5 that won’t work in OH3. I’ve tried many ways to get this working and all come up with
and I’ve tried replacing the spaces with @ and also with a comma I’ve tried adding sudo, and I’ve also added the exact commands to exec.whitelist - does this whitelist apply to simple executeCommandLine commands?
I’ve also changed the owner of the scripts directory and the script file to openhab:openhab and the script permissions are set as 777. Finally both locations are in the secure_path variable in visudo
Im trying to adapt the new syntax for the executeCommandLine, so far I haven’t succeded
My OH2 line is::
executeCommandLine("curl -X PUT --digest --user admin:XXX http://192.168.100.128/ISAPI/PTZCtrl/channels/1/presets/5/goto")
What I have tried is this :s
executeCommandLine ("curl", "-X", "PUT", "--digest", "--user", "admin:XXX http://192.168.100.128/ISAPI/PTZCtrl/channels/1/presets/2/goto")
Anyone who can spot what I dont understand?