Python - subprocess Module
Revision as of 15:35, 30 August 2008 by PeterHarding (talk | contribs) (New page: =Overview= <pre> from subprocess import Popen,PIPE 3 4 p = Popen(file, shell=True,stdout=PIPE,stderr=PIPE) 5 out = string.join(p.stdout.readlines() ) 6 outerr = string.jo...)
Overview
from subprocess import Popen,PIPE 3 4 p = Popen(file, shell=True,stdout=PIPE,stderr=PIPE) 5 out = string.join(p.stdout.readlines() ) 6 outerr = string.join(p.stderr.readlines() )