Many thanks Rich.
But still not working. Must be a rule of \ or ’ or " in the statement.
NOK executeCommandLine("curl --anyauth -u root:pw 'http://192.168.100.9:80/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=1'")
NOK - with \ before ’ executeCommandLine("curl --anyauth -u root:pw \'http://192.168.100.9:80/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=1\'")
NOK -with \ before ’ and " executeCommandLine(\"curl --anyauth -u root:pw \'http://192.168.100.9:80/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=1\'\")
In karaf
log:tail exec
i can see: 10:44:22.180 [INFO ] [lipse.smarthome.io.net.exec.ExecUtil] - executed commandLine 'curl --anyauth -u root:pw 'http://192.168.100.9:80/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=1''
with double ’ on end
but the variable is still not deactivated.
From curl direct all OK. curl --anyauth -u root:pw 'http://192.168.100.9:80/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=1'
I can’t solve this for a couple of days. Thanks for any help.
All the spaces, like this: executeCommandLine("curl@@--anyauth@@-u@@root:pw@@'http://192.168.100.9:80/axis-cgi/virtualinput/deactivate.cgi?schemaversion=1&port=1'")
I’m not sure if ' character should be escaped too.