Caution: | Use the pub.utils:executeOSCommand service with extreme caution; the commands can affect the production systems where Integration Server is running. |
Note: | If you make any changes to the OSCommands.cnf, you must reload the WmPublic package or restart Integration Server for the changes to take effect. |
Parameter | Description |
allowedOSCommands | List of commands that can be executed using the pub.utils.executeOSCommand service. You can specify commands and command parameters. If you specify a command (example, ps), Integration Server will run any command parameter with that command (such as ps -ef or ps -aux). If you specify a particular command parameter (example, ps -ef) Integration Server will run only that command parameter, not any other parameter associated with the command (such as ps -aux). |
allowedWorkingDirectories | List of directories where the allowed commands can be executed. |
command | String Command to be executed on the target operating system. You can include command parameters only if the command parameters do not contain spaces.
| ||
arguments | String List Optional. All of the command parameters for the command. Add one element to the parameter for each command parameter that you specify. | ||
environment | String List Optional. An array of strings of environment variable settings in the name=value format. Set the value to null if you want the service to use the environment of the current process as the environment for its subprocesses. | ||
workingDirectory | String List Optional. The working directory from which the command is to be executed. Set the value to null if you want the service to use the working directory of the current process as the working directory of its subprocesses. |
status | String The exit value of the executed command. The value 0 (zero) indicates normal termination. |
outputMessage | String Output of the executed command. |
errorMessage | String Errors that occurred during command execution. |