|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.Execute
CommandExecutor
public class Execute
Class for running programs and executing commands. The methods in this class catch and return output from these commands (both info and error messages).
| Constructor Summary | |
|---|---|
Execute()
Deprecated. |
|
| Method Summary | |
|---|---|
String |
execute(String command)
Deprecated. Executes a command or program. |
String |
execute(String[] command)
Deprecated. Executes a command or program. |
static void |
main(String[] args)
Deprecated. Only for testing. I mean, why bother? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Execute()
| Method Detail |
|---|
public String execute(String[] command)
command - An array of strings, in which teh first argument is the command to execute,
and the rest its parameters
public String execute(String command)
command - the command to execute
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||