[SOLVED] ExecuteCommandLine & OH2.2

Hello,
I’ve problem with the rules with ExecuteCommandLine and OH2.2.

var String result = ExecuteCommandLine("/etc/openhab2/script.sh", 60000)

This is the result:

2018-05-28 15:03:20.177 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'XYZ': The name 'ExecuteCommandLine' cannot be resolved to an item or type; line 34, column 37, length 55

Could you help me?
Regards

try executeCommandLine (small E)

also, try VS Code openHAB Extension!

Ohhh thank you very much!
I’m stupid!
I’m also using .vim syntax but I banged my head for days, but I ignored this!
Thank you again!

1 Like

Has anyone kept that up to date? Even back in the 1.8 days the .vim syntax highlighting was not really even adequate for checking the syntax. But unless it has been updated for 2.3 it is woefully inadequate.