I\'m trying to write a program in Python and I\'m told to run an .exe file. When this .exe file is run it spits out a lot of data and I need a certain line printed out to th
Something like this:
import subprocess process = subprocess.Popen(["yourcommand"], stdout=subprocess.PIPE) result = process.communicate()[0]