I'm trying to make a bot that controls a minecraft server and I've managed to make start and send commands to the server, however I can't get the output of the server while it is running what I have now will only send me the output after the server is terminated kind of like a log.
process = subprocess.Popen(executable,stdin=PIPE,stdout=PIPE, text=True)
out, err = process.communicate()
print(out)
print(err)
I would like to be able to use that server information to create a console