Remote command

Presumably a simple question; but I can’t find a simple answer!!

Suppose on a remote system I want to execute a command how do I do this via Luup?

I tried:

luup.inet.wget(“http://192.168.0.202:8080/hello”)
where hello is an executable on a remote system but no joy :-(((

thanks in advance!

I found this elsewhere on the site and it seems to work:

local http = require(“socket.http”)
http.TIMEOUT = 5
result, status = http.request(“http://192.168.0.202:8080/hello”)

I’m using successfully in the Luup section of a couple of scenes.