Package com.yahoo.system
Class ProcessExecuter
- java.lang.Object
-
- com.yahoo.system.ProcessExecuter
-
public class ProcessExecuter extends java.lang.Object
Executes a system command synchronously.- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description ProcessExecuter()
ProcessExecuter(boolean override_log_control)
-
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.
-
-
-
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
-
-