public void execCommandGetResult(Session session){
        StringBuilder result = new StringBuilder();
        result.append(String.format("======== [ %s ] execute Command: ' %s ', The Result is:\n",ip,command));
        try {
            ChannelExec channelExec = (ChannelExec)session.openChannel("exec");
            channelExec.setEnv("LC_MESSAGES","en_US.UTF-8");
            channelExec.setCommand(command);
            BufferedReader exec_result = new BufferedReader(new InputStreamReader(channelExec.getInputStream()));
            BufferedReader error_result = new BufferedReader(new InputStreamReader(channelExec.getErrStream()));
            channelExec.connect();
            Thread.sleep(SettingInfo.getSleep_time());
            int result_start = result.length();

            //得到标准输出
            while (exec_result.ready()){
                result.append(exec_result.readLine());
                result.append("\n");
            }

            //得到标准错误输出
            while (error_result.ready()){
                result.append(error_result.readLine());
                result.append("\n");
            }

            int result_stop = result.length();
            if (result_stop == result_start){
                if (channelExec.getExitStatus() == 0){
                    result.append("Command execute ... OK\n");
                } else {
                    result.append("aOo,Not get results,Please Try Again!\n");
                }
            }

            String result_string = result.toString();
            writeLog.writeCommandResult(result_string);
            HelpPrompt.printInfo(result_string);

        } catch (IOException e){
            HelpPrompt.printInfo(e.getMessage());
        } catch (InterruptedException e){
            HelpPrompt.printInfo(e.getMessage());
        } catch (JSchException e){
            HelpPrompt.printInfo(e.getMessage());
        }
    }