Package gda.util

Class OSCommandRunner

java.lang.Object
gda.util.OSCommandRunner
All Implemented Interfaces:
Serializable

public class OSCommandRunner extends Object implements Serializable
See Also:
  • Field Details

    • exitValue

      public final Integer exitValue
    • exception

      public final Exception exception
    • succeeded

      public final Boolean succeeded
    • commands

      public final List<String> commands
    • keepOutput

      public final boolean keepOutput
  • Constructor Details

    • OSCommandRunner

      public OSCommandRunner(String command, boolean _keepOutput, String stdInFileName, String stdOutFileName)
    • OSCommandRunner

      public OSCommandRunner(String[] _commands, boolean _keepOutput, String stdInFileName, String stdOutFileName)
    • OSCommandRunner

      public OSCommandRunner(List<String> _commands, boolean _keepOutput, Object stdInFile, String stdOutFileName)
    • OSCommandRunner

      public OSCommandRunner(List<String> _commands, boolean _keepOutput, Object stdInFile, String stdOutFileName, Map<? extends String,? extends String> envPutAll, List<String> envRemove)
    • OSCommandRunner

      public OSCommandRunner(List<String> _commands, boolean _keepOutput, Object stdInFile, String stdOutFileName, Map<? extends String,? extends String> envPutAll, List<String> envRemove, String directory)
    • OSCommandRunner

      public OSCommandRunner(List<String> _commands, boolean _keepOutput, Object stdInFile, String stdOutFileName, Map<? extends String,? extends String> envPutAll, List<String> envRemove, String directory, int timeoutInMs)
      Starts process, waits for completion.
      Parameters:
      _commands - - this is the program and list of arguments
      _keepOutput - - true if output is to be later accessed in outputLines
      stdInFile - - if not null stdin is set to this file. Can be a string for the file path or a list of strings for the lines of the file.
      stdOutFileName - - if not null stdout is set to this file.
  • Method Details