I have 2 programs that are both in python, one is 3rd Party and already been made. I want to run one in the foreground and one in the background. I want to set up a communication between the 2 programs, so I can tell the one in the foreground to do something, and it then tell the other program to do something. Such as on the foreground program I press a button, which then tell the other program to do something. What is the best way to do bout this?
I know I have asked a question about this before, but I feel that people might have found that too specific, so I have written a more simplified question.
-
3have you read this?vault– vault2013年03月04日 16:46:54 +00:00Commented Mar 4, 2013 at 16:46
-
You don't need to make two programs. Just create a thread in the main program that will do the job.Ionut Hulub– Ionut Hulub2013年03月04日 16:49:01 +00:00Commented Mar 4, 2013 at 16:49
-
look my answer at: stackoverflow.com/questions/16213235/…Vladimir Muzhilov– Vladimir Muzhilov2013年04月26日 08:46:19 +00:00Commented Apr 26, 2013 at 8:46
-
look my answer at: stackoverflow.com/questions/16213235/…Vladimir Muzhilov– Vladimir Muzhilov2013年04月26日 08:47:20 +00:00Commented Apr 26, 2013 at 8:47
-
in this stack overflow post various solutions are proposed, including sockets, IPC, Posix based messages, DBUS , Multi Processing module etc .. At least one of them should be found useful for such circumstances ..cestpasmoi– cestpasmoi2023年11月16日 12:40:51 +00:00Commented Nov 16, 2023 at 12:40
1 Answer 1
From my experience, rpyc is by far the simplest, most elegant, and most flexible way to go about it. http://rpyc.readthedocs.org/en/latest/
Comments
Explore related questions
See similar questions with these tags.