|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.util.ShellUtil
Shell.ShellCommandExecutor instead.
public class ShellUtil
Class to execute a shell.
| Constructor Summary | |
|---|---|
ShellUtil(List<String> args,
File dir,
Map<String,String> env)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
execute()
Deprecated. Executes the command. |
int |
getExitCode()
Deprecated. |
Process |
getProcess()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShellUtil(List<String> args,
File dir,
Map<String,String> env)
args - list containing command and command line argumentsdir - Current working directoryenv - Environment for the command| Method Detail |
|---|
public void execute()
throws IOException
IOException
InterruptedExceptionpublic Process getProcess()
public int getExitCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||