#NEWLINE# def run_crontab_script( self , current_crontab , path_to_app , path_to_jobs , unique_id ) : #NEWLINE# #INDENT# with temp_file ( current_crontab ) as stdin_path : #NEWLINE# #INDENT# args = [ sys . executable , '-m' , 'performanceplatform.collector.crontab' , path_to_app , path_to_jobs , unique_id ] #NEWLINE# proc = subprocess . Popen ( args , stdin = open ( stdin_path ) , stderr = subprocess . STDOUT , stdout = subprocess . PIPE ) #NEWLINE# output = proc . communicate ( ) #NEWLINE# if ( proc . returncode != 0 ) : #NEWLINE# #INDENT# raise ProcessFailureError ( proc . returncode , ' ' . join ( args ) , output = output [ 0 ] ) #NEWLINE# #UNINDENT# return output [ 0 ]