Ah, thanks. If I want to replace the literal value "5" with the value of a item of type Number, is that possible? After playing with it, I think scripting it makes sense, as long as I can pass a parameter to the script, like this:
Number My_Light_Level "Light Level [%.1f]"
executeCommandLine("/opt/dim1.sh My_Light_Level.state");
Except I want it to replace the parameter with the value of <My_Light_Level.state>.
Also, while the script is running, is OpenHAB blocked from doing other things until the script completes?