I have written a Python script (A) that runs the whole time as a "Server" and I need to send a string to Process A from another python script (B). The only functionality from B is to send a string to A when it is started. After sending the string, B is terminated but A should still running. Maybe B is started again after some time and sends again a string to A.......
What is the best way to do this? Should I use a (named) pipe, is it possible to use stdin or have I to use a socket, maybe TCP or UDP? Note: Both scripts run on the same machine.