org.openuat.channel
Class Command

java.lang.Object
  extended by org.openuat.channel.Command

public class Command
extends java.lang.Object

The class Command holds a name and a macAdress of an ethernet interface


Constructor Summary
Command()
           
 
Method Summary
static java.lang.String executeCommand(java.lang.String[] systemCommand, java.lang.String outputString, java.lang.String workingDirectory)
          executes a system Command and returns the output of the system command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

executeCommand

public static java.lang.String executeCommand(java.lang.String[] systemCommand,
                                              java.lang.String outputString,
                                              java.lang.String workingDirectory)
                                       throws ExitCodeException,
                                              java.io.IOException
executes a system Command and returns the output of the system command

Parameters:
systemCommand - the command to execute
outputString - A String to set to the output of the process
workingDirectory - If set to !=null, the process is run from this directory
Returns:
the output of the command
Throws:
ExitCodeException
java.io.IOException


2005-2006, Rene Mayrhofer.