def command_handle(self):
self.__results = self.execute(self.args.command)<EOL>self.close()<EOL>self.logger.debug("<STR_LIT>".format(self.__results))<EOL>if not self.__results:<EOL><INDENT>self.unknown("<STR_LIT>".format(self.args.command))<EOL><DEDENT>if len(self.__results) != <NUM_LIT:1>:<EOL><INDENT>self.unknown(<EOL>"<STR_LIT>".format(<EOL>self.args.command))<EOL><DEDENT>self.__result = int(self.__results[<NUM_LIT:0>])<EOL>self.logger.debug("<STR_LIT>".format(self.__result))<EOL>if not isinstance(self.__result, (int, long)):<EOL><INDENT>self.unknown(<EOL>"<STR_LIT>".format(<EOL>self.args.command))<EOL><DEDENT>status = self.ok<EOL>if self.__result > self.args.warning:<EOL><INDENT>status = self.warning<EOL><DEDENT>if self.__result > self.args.critical:<EOL><INDENT>status = self.critical<EOL><DEDENT>self.shortoutput = "<STR_LIT>".format(<EOL>self.args.command, self.__result)<EOL>[self.longoutput.append(line)<EOL>for line in self.__results if self.__results]<EOL>self.perfdata.append("<STR_LIT>".format(<EOL>crit=self.args.critical,<EOL>warn=self.args.warning,<EOL>result=self.__result,<EOL>command=self.args.command))<EOL>status(self.output(long_output_limit=None))<EOL>self.logger.debug("<STR_LIT>")<EOL>
Get the number of the shell command.