#NEWLINE# def Shell( self , command ) : #NEWLINE# #INDENT# p = subprocess . Popen ( command , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) #NEWLINE# while ( p . poll ( ) is None ) : #NEWLINE# #INDENT# line = p . stdout . readline ( ) . rstrip ( '\n' ) #NEWLINE# if ( len ( p ) > 0 ) : #NEWLINE# #INDENT# self . logger . debug ( line )