Python - subprocess Module

From PeformIQ Upgrade
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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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