Czarek Tomczak
Czarek Tomczak

Reputation: 20645

How to communicate with an external Python process? (not a subprocess)

The other python process was launched externally, only the process identifier is known. This external process is not a subprocess launched from a python process. The path to both processes could be the same. How do I communicate with that process? How can I easily send python data types between these processes?

Best regards, Czarek

Upvotes: 1

Views: 571

Answers (1)

davvs
davvs

Reputation: 1059

If you can accept communicating between the processes using a tcp connection, you could use zeromq. http://zeromq.org/

See these threads for examples:

Upvotes: 2

Related Questions