Relative Content

Tag Archive for pythonsubprocesspopen

Reading stdout of python subprocess continuously

I have an executable that I need to run which outputs messages to the stdout while running, however when using subprocess, it seems to wait for the script to finish completely before sending the messages. Below is a basic implementation of my problem.

Reading stdout of python subprocess continuously

I have an executable that I need to run which outputs messages to the stdout while running, however when using subprocess, it seems to wait for the script to finish completely before sending the messages. Below is a basic implementation of my problem.