org.gnu6.moves
Class exec

java.lang.Object
  |
  +--org.gnu6.six.move
        |
        +--org.gnu6.moves.exec
All Implemented Interfaces:
java.lang.Runnable

public class exec
extends org.gnu6.six.move

DESCRIPTION:
It executes a given script
MANDATORY PARAMETERS:
script
OPTIONAL PARAMETERS:
one can add arbirary finite number of parameters that are the same as the appropriate variables in the "script".
EXAMPLE:
 <move name="exec" skipFail="true">
       <parameter name="script" value="/usr/local/test.sh" />
       <parameter name="hello" value="Hello world!" />
 </move>
 

and the corresponding script "test.sh" is
 #!/bin/sh
 echo $hello


Field Summary
 java.lang.String[] props
           
 
Fields inherited from class org.gnu6.six.move
currentState, myInstance, myName, myThreadGroup, parameters, thisThread
 
Constructor Summary
exec()
           
 
Method Summary
 java.lang.Process Execute(java.lang.String Script)
           
 void run()
           
 
Methods inherited from class org.gnu6.six.move
activeCount, amIsuspended, enumerateThreadGroups, enumerateThreads, getLogFile, getLogStatus, getName, getParameters, getParent, getState, interrupt, interruptAll, isAlive, isItSuspended, join, resume, setAlive, setDaemon, setInstance, setLogFile, setLogStatus, setName, setParameters, setParent, setState, setThread, setThreadGroup, sleep, start, stop, stopAll, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

public java.lang.String[] props
Constructor Detail

exec

public exec()
Method Detail

run

public void run()

Execute

public java.lang.Process Execute(java.lang.String Script)