def __init__(self): ShellCmdBasedPlugin.__init__(self) self.allowedProcesses = ['ovcd.exe', 'ovcd'] self.versionCmd = 'opcagt -version' self.versionPattern = '(\d+\.\d+\.\d+)' self.allowedCodes = [0, 1] self.stopper_processes = ['ovbbccb', 'ovbbccb.exe']
def process(self, context): processes = context.application.getProcesses() process_names = [ process.getName().lower().strip() for process in processes if process ] if not filter( None, map(lambda x: x in self.stopper_processes, process_names)): raise IgnoreApplicationException() ShellCmdBasedPlugin.process(self, context)
def process(self, context): ShellCmdBasedPlugin.process(self, context) core_id = self._get_core_id(context) if core_id: appOsh = context.application.getOsh() appOsh.setStringAttribute('name', core_id)
def __init__(self): ShellCmdBasedPlugin.__init__(self) self.allowedProcesses = ['ovcd.exe', 'ovcd'] self.versionCmd = 'ovconfget' self.versionPattern = 'OPC_INSTALLED_VERSION\s*=\s*(\d+\.\d+\.\d+)' self.allowedCodes = [0, 1]
def __init__(self): ShellCmdBasedPlugin.__init__(self) self.allowedProcesses = ['nnmaction.exe', 'nnmaction'] self.versionCmd = 'nnmversion.ovpl' self.versionPattern = '(\d+\.\d+)'
def process(self, context): processes = context.application.getProcesses() process_names = [process.getName().lower().strip() for process in processes if process] if not filter(None, map(lambda x: x in self.stopper_processes, process_names)): raise IgnoreApplicationException() ShellCmdBasedPlugin.process(self, context)