def run_quick(command, echo=True):
 p = subprocess.Popen(command, shell=True, close_fds=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
 (stdout, stderr) = p.communicate()
 if echo:
  print command
  print stdout
 return RunResult(p.returncode, stdout, None)

def run_quick ( command , echo = True ) : p = subprocess . Popen ( command , shell = True , close_fds = True , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) ( stdout , stderr ) = p . communicate ( ) if echo : print command print stdout return RunResult ( p . returncode , stdout , None )
a more efficient form of run_and_monitor that doesnt monitor output .