...
OS | Task Configuration | Scenario/Description | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Linux | Scenario: BasedExecution of an Task instance success or failure depends on the exit code of the command , the task instance is executed with success or failurebeing executed. If the command is executed with exit code = 0, the default behavior is that the Task Instance FAILED status istask instance completes with Success status. Otherwise, the task instance status is Failed with exit code = 1. This example shows the execution of thean
| |||||||||||||||||||||||
Linux | Scenario: Command execution that produces a valid JSON result:. This example shows a command that produces JSON output on STDOUT. In such a case, the output is also visible in the task instance EXTENSION output.
| |||||||||||||||||||||||
Linux | Scenario: Execution of a shell script stored in the Controller. The example shows execution of script.sh. Environment variable ${UE_CMD_ADDFILE} points to the script full path referenced from Optional Additional File field. Note: In this example, the reference to the environmental variable UE_CMD_ADDFILE is surrounded by quotes. This was done because the path to this variable contains spaces, so it must be quoted in order for the shell to resolve it correctly. | |||||||||||||||||||||||
Linux | Scenario: Conditional execution of commands. This example shows a scenario that depends on the result of grep. If there is a pattern match, a success message is displayed; otherwise, an error message is printed to indicate the pattern wasn't found. | |||||||||||||||||||||||
Linux | Scenario: Command Stacking. This example shows multiple commands being executed:
| |||||||||||||||||||||||
Linux | Scenario: Redirection of output. In this example, the contents of the current directory are listed in long format using ls -l, and then redirected to the output.log file. Afterwards, the contents are displayed through the cat command. | |||||||||||||||||||||||
Windows | Scenario: PowerShell script execution. The example shows execution of a PowerShell script provided by the Optional Additional File field referenced through the UE_CMD_ADDFILE environment variable.
| |||||||||||||||||||||||
Windows | Scenario: Execution of a batch file. The example shows execution of a batch file provided by the Optional Additional File field referenced through the UE_CMD_ADDFILE environment variable.
|
...