executeCommandLine - wget to grab image

Hello, i’m at the moment stuck wit the executeCommandLine action inside a classig DSL based rule. The below code shows how i try to call wget to grab an image from the ipcam and store it in the html folder of OH3.

	var err = executeCommandLine(Duration.ofSeconds(10),"wget", "http://192.168.2.50:8080/ipcamera/124a1f6423/ipcamera.jpg" ,"-O /etc/openhab/html/bb.jpg")
	logError("Tuer1", err)

But independent of the order i set the additional parameters, i always get the following error through the log statement:

[ERROR] [org.openhab.core.model.script.Tuer1 ] - /etc/openhab/html/bb.jpg: No such file or directory

any help & suggestion welcome

The general idea works for others

Shouldn’t that be
,"-O" , " /etc/openhab/html/bb.jpg"