def execute_get_output(*command):
 devnull = open(os.devnull, 'w')
 command = map(str, command)
 proc = subprocess.Popen(command, close_fds=True, stdout=subprocess.PIPE, stderr=devnull)
 devnull.close()
 return proc.stdout.read().strip()

def execute_get_output ( * command ) : devnull = open ( os . devnull , 'w' ) command = map ( str , command ) proc = subprocess . Popen ( command , close_fds = True , stdout = subprocess . PIPE , stderr = devnull ) devnull . close ( ) return proc . stdout . read ( ) . strip ( )
execute and return stdout .