Steven Bethard wrote:
> import subprocess
>
> file1 = open('file1', 'w')
> prog1 = subprocess.Popen(['prog1'], stdout=file1)And if the script runs somewhere that stderr is likely to disappear: prog1 = subprocess.Popen(['prog1'], stdout=file1, stderr=subprocess.STDOUT) -- http://mail.python.org/mailman/listinfo/python-list
