Hello
thanks for your response. I changed the rule like this:
configuration: {}
triggers: []
conditions: []
actions:
- inputs: {}
id: "1"
configuration:
type: application/vnd.openhab.dsl.rule
script: logInfo("TEST", "Start Batchfile") ScriptResponse =
executeCommandLine(Duration.ofSeconds(10),
"C:\\Windows\\System32\\cmd.exe","/c","C:\\openhab\\conf\\scripts\\test.bat")
logInfo("TEST", "ScriptResponse=" ScriptResponse) logInfo("TEST", "End
Batchfile")
type: script.ScriptAction
the log shows:
Script execution of rule with UID '5e0474553a' failed: logInfo("TEST", "Start Batchfile") ScriptResponse = executeCommandLine(Duration.ofSeconds(10), "C:\\Windows\\System32\\cmd.exe","/c","C:\\openhab\\conf\\scripts\\test.bat") logInfo("TEST", "ScriptResponse=" ScriptResponse) logInfo("TEST", "End Batchfile")
It does not matter if I use a timeout with 10s or 60s… as well as the user and openhab should have both admin rights. The batch file I can run without any issue and I also do not get any window or error message displayed about the rights permission.
Do you see any other problems and/or how can I better debugg this issue?
Thanks in advance