def run_one_command(*args):
 cmd_line = (('"' + executable) + '" '.join(args))
 (inp, out, err) = os.popen3(cmd_line)
 print cmd_line
 (output, err) = multireader(out, err)
 res = out.close()
 if res:
  print ('%d running %s failed' % (res, cmd_line))
  print 'output was', output
  print 'err', err
 return (output, err, res)

def run_one_command ( * args ) : cmd_line = ( ( '"' + executable ) + '" ' . join ( args ) ) ( inp , out , err ) = os . popen3 ( cmd_line ) print cmd_line ( output , err ) = multireader ( out , err ) res = out . close ( ) if res : print ( '%d running %s failed' % ( res , cmd_line ) ) print 'output was' , output print 'err' , err return ( output , err , res )
runs a single command .