It works…
val fdCamURL = SS_CAM1_Url.state.toFullString
val file = "test.jpg"
val fdCamSnapTmp = "/etc/openhab/snap/" + file
var ScriptResponse = executeCommandLine(Duration.ofSeconds(5),"/usr/bin/curl",fdCamURL,"-o",fdCamSnapTmp)
logInfo ("Surveillance", ScriptResponse)
logInfo ("Surveillance2", fdCamURL)
I have to remove the
"\""
arround the SS_CAM1_Url.state.toFullString
I had insert this in cause of the curl command…ok, thank you very mutch for your advise.
Sascha