1

I have a python script on my computer. I want that I can execute this script just by triggering it to start from another computer. Provide the case they can use internet , wifi or even bluetooth for this purpose. Also it is possible to do so using GCP shell?

Please help!

Kundan Jha
  • 104
  • 3
  • 11

2 Answers2

2

you can either use ssh to actually login on your remote computer or set up an API. Such an API could be a small web server.

For testing you could use simplehttpserver https://docs.python.org/2/library/simplehttpserver.html

Raphael
  • 1,731
  • 2
  • 7
  • 23
1

You can try to use firebase. You can upload some variable into your cloud database from your main computer and which then invokes a desired action upon receiving the data in your side computer. You can check it out. There are many python APIs built for it, but it mainly communicates through httprequests if im not wrong.

OR, you can set up a vnc viewer/server on your client and main computer.

Axois
  • 1,961
  • 2
  • 11
  • 22