public Integer getStat() throws Exception {
        logger.info(commandLinePattern);
        ExecutionResult result = ProcessCommander.exec(commandLinePattern);
        if (result.getOut().size() > 1) {
            try {
                long pid = Long.parseLong(result.getOut().get(1).trim());
                if (pid > 0) return result.getOut().size() - 1;
            }
            catch (NumberFormatException e) {
                return 0;
            }
        }
        return 0;
    }