Process Launcher


The Launcher (Process Launcher) is used to execute a binary or perl program (possibly remotely).    A MO (message object) of type 6 and code 3 and containing a single field "runMe" (the command line to be executed) is sent to the launcher.    It will fork a copy of itself, redirecting the child's stdout and stderr to sockets captured by the parent, then execute the requested comman line.    The output from the child process is placed in a response message field named "output".    The response is then returned to the caller.

The launcher may be used, in cooperation with the router, to execute commands on remote systems. The intended use is to run remote processes in response to cgi events.

Configuration Keywords for Launcher are:
WATTIME The time in milliseconds to wait for the child process to complete execution. If the time expires, an error is returned to the caller.
EXEPATH The path to be used to find the executables.
EXEDIR The directory to change to before executing a command.
NODENAME The logical name of this node to be used in rtrPath field.
SUBNODE The logicalName@host:port EncryptionType EncryptionKey.