org.mmbase.util
Class Execute

java.lang.Object
  extended by org.mmbase.util.Execute

Deprecated. Use CommandExecutor

public class Execute
extends Object

Class for running programs and executing commands. The methods in this class catch and return output from these commands (both info and error messages).

Version:
$Id: Execute.java 37082 2009-07-22 07:34:18Z michiel $
Author:
Daniel Ockeloen, Pierre van Rooden (javadocs)
Application:
VWMS

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

Execute

public Execute()
Deprecated. 
Method Detail

execute

public String execute(String[] command)
Deprecated. 
Executes a command or program. The output of the program is returned as a string.

Parameters:
command - An array of strings, in which teh first argument is the command to execute, and the rest its parameters
Returns:
the command output

execute

public String execute(String command)
Deprecated. 
Executes a command or program. The output of the program is returned as a string.

Parameters:
command - the command to execute
Returns:
the command output

main

public static void main(String[] args)
Deprecated. Only for testing. I mean, why bother?

Entry for direct invocation from the commandline. Usage:
java Execute [command]
Does not take parameters.



MMBase 2.0-SNAPSHOT - null