I'm trying to get two computers to start a program (to play a video) simultaneously using a network connection in Python.
I'm starting down the path of opening a socket server on one machine, connecting to it on the other, and sending some kind of communication saying "Now!", which is do-able, but seems unnecessarily complicated.
Is there some easy thing I'm missing here? Ideally I'd have a program called "Block.py" that I'd start from a bash script on one machine, which would wait till I run it on the other machine, and they'd then both continue on to the omxplayer command...
Both machines have static IPs, if that helps simplify things.
Many Thanks in advance!
Turns out it wasn't as hard as I thought, the example code at realpython.com/python-sockets/ has a server and client that do pretty much what I want. [Hint, gotta use 'python3' instead of 'python' but since I'm calling it from bash, that's a don't care...