Package com.yahoo.system
Class ProcessExecuter
- java.lang.Object
-
- com.yahoo.system.ProcessExecuter
-
public class ProcessExecuter extends 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<Integer,String>
exec(String command)
Executes the given command synchronously without timeout.Pair<Integer,String>
exec(String[] command)
Executes the given command synchronously without timeout.
-
-
-
Method Detail
-
exec
public Pair<Integer,String> exec(String command) throws IOException
Executes the given command synchronously without timeout.- Returns:
- Retcode and stdout/stderr merged
- Throws:
IOException
-
exec
public Pair<Integer,String> exec(String[] command) throws IOException
Executes the given command synchronously without timeout.- Parameters:
command
- tokens- Returns:
- Retcode and stdout/stderr merged
- Throws:
IOException
-
-