You may have run the program through subprocess.Popen with the message subprocess.PIPE , and then drag this output whenever you want, but as it is, os.system just runs the command and nothing else.
from subprocess import Popen, PIPE p = Popen(['command', 'and', 'args'], stdout=PIPE, stderr=PIPE, stdin=PIPE) output = p.stdout.read() p.stdin.write(input)
Much more flexible in my opinion. You can see the full documentation: Python subprocess module
Blue Peppers Jul 07 '10 at 18:09 2010-07-07 18:09
source share