executeCommandLine gives error - cannot bind 'local:5037'

My guess is that there is a problem with the rights. I think OpenHAB somehow has less rights while executing the script compared to running it directly via command line.