#NEWLINE# def get_output( self , cmd ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# process = subprocess . Popen ( cmd , stdout = subprocess . PIPE ) #NEWLINE# #UNINDENT# except ( OSError , EnvironmentError ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# ( out , err ) = process . communicate ( ) #NEWLINE# return err