#NEWLINE# def run( self , context ) : #NEWLINE# #INDENT# cmd = 'echo $$>{dir}/pidfile; exec {dir}/recentfling.sh -i {}; rm {dir}/pidfile' #NEWLINE# cmd = cmd . format ( self . loops , dir = cmd . device . working_directory ) #NEWLINE# try : #NEWLINE# #INDENT# self . output = self . device . execute ( cmd , timeout = 120 ) #NEWLINE# #UNINDENT# except KeyboardInterrupt : #NEWLINE# #INDENT# self . _kill_recentfling ( ) #NEWLINE# raise