Windows CMD taskkill

Hey all,

hope someone can help with this.

im using windows 10
openHab 3.0.2

im trying to shut a program down via openHab using CMD
locally i can run taskkill /im program.exe /t and it works fine
i am trying to get openhab to do this but so far have not got anywhere with it

i have added taskkill line to exec.whitelist
i have used the gui to add the exec

Configuration
Command
taskkill /IM program.exe /T /F

Transform
REGEX((.*))

Interval
0

Timeout
15

Autorun
OFF

openhab logs don’t show if it worked or failed. but it isnt closing the program it should be.

never mind!!

just worked it out

all the white spaces needed @@

so exec.whitelist

taskkill@@/IM@@program.exe@@/T@@/F

and gui

Configuration
Command
taskkill@@/IM@@program.exe@@/T@@/F
1 Like