Quick and simple: I'm calling a process with subprocess.popen which will run continuously in cmd/terminal. I want to call a function if a certain string of text is displayed in cmd/terminal. How would I do this? I'm rather new to python, so the simplest solution will probably be the best one.

Thank you very much!