Python - subprocess Module

From PeformIQ Upgrade
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() )