to make the script executable. make sure you have the openhab exec binding in your addons directory. Edit your OPENHAB .items to contain something similar to this ...