I have a Python file where I can just run like this locally
script.py --ip=172.19.242.32 --mac=102030405060
Now I upload the script to my VM IP: 45.55.88.55.
How can I call the script via cURL and pass in proper flags?
I've tried
curl 45.55.88.55/script.py | python --ip=172.19.242.32 --mac=102030405060
and
curl 45.55.88.55/script.py --ip=172.19.242.32 --mac=102030405060 | python
Both are not working. How can I debug this further?
sshto execute a script in the remote server.