|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.utils.ScriptInvoker
public class ScriptInvoker
Title: ScriptInvoker
Description: Invokes command-line scripts
Copyright: Copyright (c) 2004
Company: IT Innovation
| Constructor Summary | |
|---|---|
ScriptInvoker()
|
|
| Method Summary | |
|---|---|
static int |
runCommand(String[] command,
File runDir,
StringBuffer stdOutBuf,
StringBuffer stdErrBuf)
Runs the specified command |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptInvoker()
| Method Detail |
|---|
public static int runCommand(String[] command,
File runDir,
StringBuffer stdOutBuf,
StringBuffer stdErrBuf)
throws GridErrorException
command - The command to be runrunDir - The directory to run the command from, if null the current dir is usedstdOutBuf - Buffer to be filled with text from the standard output stream from the command.
If this is null, this stream gets dumped to the logfile.stdErrBuf - Buffer to be filled with text from the standard error stream from the command
If this is null, this stream gets dumped to the logfile.
GridErrorException - If there is an error running the command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||