
ShellSessionThis connector executes a command to enter a shell, then uses open/poll/close dialogs to run commands. All the I/O is passed through for processing.
You define the shell command in the "shell" property. For example, on Windows:
"Command.exe" On Unix, "/bin/sh".
Note that the executed command will not inherit any shell environment, so
if that is necessary, you should wrap your target shell in a shell
script/batch file than sets up your environment.
You call that script/batch, by directing the command shell to launch it.
For example, on Windows: "Command.exe /C MyBatch.bat"
On Unix, "/bin/sh -c MyScript.sh"
The present working directory (PWD) of the command is set to the application's home directory. The command shell will be executed as the same O/S user account as the application's.
| Open: | Runs once, immediately after a successful launch of the shell (gateway startup). |
|---|---|
| Poll: | Runs periodically, according to the "poll" property. |
| Close: | Runs once, just before the shell is terminated (gateaway shutdown). |
When entered as the value of the "poll" property, each field is separated by a space character. Each field can contain a single digit, or the following patterns:
poll=30 0 * * *
poll=0 * * * 1-5
poll=* * 1 * *