|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.exec.LocalExec
public class LocalExec
Helper class for local execution of script/commands etc. is Factory class for LocalProcess.
Constructor Summary | |
---|---|
LocalExec()
|
Method Summary | |
---|---|
static LocalProcess |
execute(java.lang.String[] cmds,
boolean wait)
Execute cmds[0] and return Process object. |
static java.lang.String[] |
simpleExecute(java.lang.String[] cmds)
Direct execute command and return result as String array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalExec()
Method Detail |
---|
public static java.lang.String[] simpleExecute(java.lang.String[] cmds) throws VlException
The String array cmds[] holds the command and argument to execute. cmds[0] is the command to execute and cmds[1]...cmds[n] are the arguments. Method blocks until process has terminated!
Methods returns String array result[] which has at:
This method assumes no big output of text. Resulting String array (or array elements) might be null upon error.
VlException
public static LocalProcess execute(java.lang.String[] cmds, boolean wait) throws VlException
wait:
- wait until process completes.
VlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |