executeCommandLine response

Hi

I’m having trouble getting a response from an executeCommandLine call in a rule.

Here’s a simplified version of the rule:

var String response = executeCommandLine("/opt/openhab2/conf/scripts/myscript.sh", 20)
logInfo("myExecute", response )

However when I check the log response seems to be blank, rather than the output from the script.

Many thanks