Class ProcessExecuter


  • public class ProcessExecuter
    extends java.lang.Object
    Executes a system command synchronously.
    Author:
    bratseth
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Pair<java.lang.Integer,​java.lang.String> exec​(java.lang.String command)
      Executes the given command synchronously without timeout.
      Pair<java.lang.Integer,​java.lang.String> exec​(java.lang.String[] command)
      Executes the given command synchronously without timeout.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProcessExecuter

        public ProcessExecuter​(boolean override_log_control)
      • ProcessExecuter

        public ProcessExecuter()
    • Method Detail

      • exec

        public Pair<java.lang.Integer,​java.lang.String> exec​(java.lang.String command)
                                                            throws java.io.IOException
        Executes the given command synchronously without timeout.
        Returns:
        Retcode and stdout/stderr merged
        Throws:
        java.io.IOException
      • exec

        public Pair<java.lang.Integer,​java.lang.String> exec​(java.lang.String[] command)
                                                            throws java.io.IOException
        Executes the given command synchronously without timeout.
        Parameters:
        command - tokens
        Returns:
        Retcode and stdout/stderr merged
        Throws:
        java.io.IOException