Examples of exit_code()


Examples of sos.spooler.Subprocess.exit_code()

                stdErrString += stdErrLine + "\n";
            }
            if (spooler_job.order_queue() != null){
                spooler_task.order().params().set_var("scheduler_order_stderr_output", stdErrString);
                spooler_task.order().params().set_var("scheduler_order_stdout_output", stdOutString);
                spooler_task.order().params().set_var("scheduler_order_exit_code", String.valueOf(subprocess.exit_code()));
                spooler_task.order().params().set_var("scheduler_order_terminated", (terminated ? "true" : "false"));
            }
           
            if((subprocess.exit_code() != 0)){
                if (this.isIgnoreError()) this.getLogger().info("command terminated with exit code: " + subprocess.exit_code());
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

                spooler_task.order().params().set_var("scheduler_order_stdout_output", stdOutString);
                spooler_task.order().params().set_var("scheduler_order_exit_code", String.valueOf(subprocess.exit_code()));
                spooler_task.order().params().set_var("scheduler_order_terminated", (terminated ? "true" : "false"));
            }
           
            if((subprocess.exit_code() != 0)){
                if (this.isIgnoreError()) this.getLogger().info("command terminated with exit code: " + subprocess.exit_code());
                else throw new Exception("command terminated with exit code: " + subprocess.exit_code());                   
            }
            if((subprocess.termination_signal() != 0)){
                if (this.isIgnoreSignal()) this.getLogger().info("command terminated with signal: " + subprocess.termination_signal());
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

                spooler_task.order().params().set_var("scheduler_order_exit_code", String.valueOf(subprocess.exit_code()));
                spooler_task.order().params().set_var("scheduler_order_terminated", (terminated ? "true" : "false"));
            }
           
            if((subprocess.exit_code() != 0)){
                if (this.isIgnoreError()) this.getLogger().info("command terminated with exit code: " + subprocess.exit_code());
                else throw new Exception("command terminated with exit code: " + subprocess.exit_code());                   
            }
            if((subprocess.termination_signal() != 0)){
                if (this.isIgnoreSignal()) this.getLogger().info("command terminated with signal: " + subprocess.termination_signal());
                else throw new Exception("command terminated with signal: " + subprocess.termination_signal());                 
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

                spooler_task.order().params().set_var("scheduler_order_terminated", (terminated ? "true" : "false"));
            }
           
            if((subprocess.exit_code() != 0)){
                if (this.isIgnoreError()) this.getLogger().info("command terminated with exit code: " + subprocess.exit_code());
                else throw new Exception("command terminated with exit code: " + subprocess.exit_code());                   
            }
            if((subprocess.termination_signal() != 0)){
                if (this.isIgnoreSignal()) this.getLogger().info("command terminated with signal: " + subprocess.termination_signal());
                else throw new Exception("command terminated with signal: " + subprocess.termination_signal());                 
            }
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

          subProc.wait_for_termination();

        }
        if (!timedOut)
          spooler_log.info("file executed");
        spooler_log.debug9("Exit code: " + subProc.exit_code());

        boolean stdErrEmpty = true;
        String stdErrString = "";
        String stdOutString = "";
        spooler_log.info("std_out for " + commands[i] + ":");
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

        }
        if (orderJob && order != null) {
          Variable_set realOrderPayload = order.params();
          SetVar(realOrderPayload, conStd_err_output, stdErrString);
          SetVar(realOrderPayload, conStd_out_output, stdOutString);
          SetVar(realOrderPayload, conExit_code, "" + subProc.exit_code());
          SetVar(realOrderPayload, "timed_out", "" + timedOut);
          // for compatibility with SubProcessJob
          SetVar(realOrderPayload, "scheduler_order_terminated", (!timedOut ? "true" : "false"));
          replaceAliases(realOrderPayload, outputParameterAliases);
        } // additionally set task parameters for use with copy-from:
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

          replaceAliases(realOrderPayload, outputParameterAliases);
        } // additionally set task parameters for use with copy-from:
        Variable_set taskParams = spooler_task.params();
        SetVar(taskParams, conStd_err_output, stdErrString);
        SetVar(taskParams, conStd_out_output, stdOutString);
        SetVar(taskParams, conExit_code, "" + subProc.exit_code());
        SetVar(taskParams, "timed_out", "" + timedOut);
        replaceAliases(taskParams, outputParameterAliases);

        if (timedOut && !ignoreTimeout) {
          throw new Exception("Process had to be killed because of timeout");
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

        replaceAliases(taskParams, outputParameterAliases);

        if (timedOut && !ignoreTimeout) {
          throw new Exception("Process had to be killed because of timeout");
        }
        if ((subProc.exit_code() != 0)) {
          if (ignoreError)
            spooler_log.info("Command terminated with exit code: " + subProc.exit_code());
          else
            throw new Exception("Command terminated with exit code: " + subProc.exit_code());
        }
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

        if (timedOut && !ignoreTimeout) {
          throw new Exception("Process had to be killed because of timeout");
        }
        if ((subProc.exit_code() != 0)) {
          if (ignoreError)
            spooler_log.info("Command terminated with exit code: " + subProc.exit_code());
          else
            throw new Exception("Command terminated with exit code: " + subProc.exit_code());
        }
        if ((subProc.termination_signal() != 0)) {
          if (ignoreSignal)
View Full Code Here

Examples of sos.spooler.Subprocess.exit_code()

        }
        if ((subProc.exit_code() != 0)) {
          if (ignoreError)
            spooler_log.info("Command terminated with exit code: " + subProc.exit_code());
          else
            throw new Exception("Command terminated with exit code: " + subProc.exit_code());
        }
        if ((subProc.termination_signal() != 0)) {
          if (ignoreSignal)
            spooler_log.info("Command terminated with signal: " + subProc.termination_signal());
          else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.