Communication between console of two programs - Python

Asked

Viewed 26 times

0

Good night Need to do through python communication between two programs, the second does not need to be in python, as it is just an example

I have the following code

print('Qual seu nome?')
x = input()
print('Seu nome é: ' + x)

How can I get another program to answer his question without changing his code? I need another open program to send the information.

Could be how? Something that through the path of the executed process or PID, could send the information to it.

I need to do this communication in Python, but the program that will receive the information will not necessarily be written in python.

Basically this:

inserir a descrição da imagem aqui

But without changing the code of the original program

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.