def oldQuietRun(*cmd):
 if (len(cmd) == 1):
  cmd = cmd[0]
  if isinstance(cmd, str):
   cmd = cmd.split(' ')
 popen = Popen(cmd, stdout=PIPE, stderr=STDOUT)
 out = ''
 readable = poll()
 readable.register(popen.stdout)
 while True:
  while readable.poll():
   data = popen.stdout.read(1024)
   if (len(data) == 0):
    break
   out += data
  popen.poll()
  if (popen.returncode is not None):
   break
 return out

def oldQuietRun ( * cmd ) : if ( len ( cmd ) == 1 ) : cmd = cmd [ 0 ] if isinstance ( cmd , str ) : cmd = cmd . split ( ' ' ) popen = Popen ( cmd , stdout = PIPE , stderr = STDOUT ) out = '' readable = poll ( ) readable . register ( popen . stdout ) while True : while readable . poll ( ) : data = popen . stdout . read ( 1024 ) if ( len ( data ) == 0 ) : break out += data popen . poll ( ) if ( popen . returncode is not None ) : break return out
run a command .