Standard streams are associated with a program. So, suppose there
is a program already running in some way (I don't care how or in
what way). The goal is to create pipes to the STDIN of the
program from different processes (or programs) that run either
locally or remotely and stream data into it asynchronously.
Available information is (1) the host address and (2) the pid of the program only.
How does one implement both cases in Python in this case?
Edit: I should have mentioned this presupposition. The intended operating system is Linux with a (fairly) recent kernel.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…