org.apache.hadoop.util
Class ShellUtil

java.lang.Object
  extended by org.apache.hadoop.util.ShellUtil

Deprecated. Use Shell.ShellCommandExecutor instead.

public class ShellUtil
extends Object

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

ShellUtil

public ShellUtil(List<String> args,
                 File dir,
                 Map<String,String> env)
Deprecated. 
Parameters:
args - list containing command and command line arguments
dir - Current working directory
env - Environment for the command
Method Detail

execute

public void execute()
             throws IOException
Deprecated. 
Executes the command.

Throws:
IOException
InterruptedException

getProcess

public Process getProcess()
Deprecated. 
Returns:
process

getExitCode

public int getExitCode()
Deprecated. 
Returns:
exit-code of the process


Copyright © 2006 The Apache Software Foundation