Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python script send signal to another running python script on another workstation on same network

Tags:

python

I have an already running python application on a workstation 1 on the network. On workstation 2 on the same network I want to run another python application which sends a signal to the workstation 1 python application which is already running, just like if I was pressing a button on workstation 1, triggering a function. The workstations are a mix on Windows and OSX. Is this possible?

like image 998
speedyrazor Avatar asked Dec 30 '25 15:12

speedyrazor


1 Answers

You should use sockets, the examples here are exactly what you're looking for:

https://docs.python.org/2/library/socket.html#example

like image 129
Guido Avatar answered Jan 01 '26 06:01

Guido



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!