Difference between revisions of "Python - subprocess Module"

From PeformIQ Wiki
Jump to navigation Jump to search
(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...)
 
(No difference)

Latest revision as of 15:35, 30 August 2008

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() )