Execute the command in the Linux terminal Version 1 (Python)
Action group: Processes
Description
The action executes the specified command on a Linux terminal. The action returns a table containing the result of the command execution
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | The instance of the session in which the command must be executed. | Robin.SshSession | Yes | |
Command | The command to be executed. | Robin.String | Yes | |
Results | ||||
Execution status | If the value is «true», then the command is executed successfully. If the value is «false», then the command is completed with errors. | Robin.Boolean | true | |
Execution Report | The table with the result of the team’s work. The «Output» column records the data received during the execution of the command. The «Error» column records the text of the error that occurred during the execution of the command. | Robin.DataTable |
Special conditions of use
None.
Example of use
Prerequisite for all cases. The "Connect to Linux terminal" action is installed and configured on the workspace.
Task
Specifying the correct command
Prerequisite. In the "Connect to Linux terminal" action, the correct connection parameters are specified.
Solution
- Set the " Execute the command in the Linux terminal" action on the workspace.
- Correctly fill in the parameters: "Command" - specify the correct command for the Linux terminal.
- Launch the robot.
Result
The action returned the parameters: "Execution status" - true, "Execution report" - a table with the result of the command execution.
Обзор
Инструменты контента