commandmanagement
The module nodes are the building blocks for the flow-based programming. Each node represents a specific task or operation that can be performed by the module. The following table lists the available nodes for this module.
Execute Command
Section titled “Execute Command”Execute a system-level command on the device.
Metadata:
Section titled “Metadata:”- Name: ExecuteCommand
- Tags: command, system, bash, execute, automation, script, management
- Category: Action
- Subcategory: Command > Exec
Description:
Section titled “Description:”This node executes a command on the device, such as ‘ls -la’, allowing for system-level operations to be performed directly from the application. Input data is provided through the CommandData
configuration, and the output of the command execution is returned as a string. This node is useful for automating system tasks, performing file operations, or executing complex scripts, providing a powerful tool for applications that need to interact with the underlying system or perform maintenance tasks in an automated manner.
Inputs: (1)
- Command Data : The command data to execute.
Outputs: (1)
Section titled “Outputs: (1)”- Command Output : The output of the command execution.
Configuration:
Section titled “Configuration:”No configuration required for this node.
Run Bash Command
Section titled “Run Bash Command”Execute a bash command on the device.
Metadata:
Section titled “Metadata:”- Name: RunBashCommand
- Tags: command, shell, bash, execute, script, automation, system
- Category: Action
- Subcategory: Command > Bash
Description:
Section titled “Description:”This node runs a bash command on the device, such as ‘ls -la’, allowing for direct shell operations from within the application. It’s particularly useful for automating system tasks, performing file operations, or executing complex scripts. The node is triggered by a boolean input, and the command to execute is defined through the CommandData
configuration. It is a powerful tool for applications that need to interact with the underlying system or perform maintenance tasks in an automated manner.
Inputs: (1)
- Trigger : Trigger
Outputs: (1)
Section titled “Outputs: (1)”- Command Output : The output of the command execution.
Configuration:
Section titled “Configuration:”The following configuration parameters can be set for this node:
CommandData: {
# The command to run on the device, such as 'ls'. command: string, # The arguments to pass to the command, such as '-la'. args: string, # The timeout for the command execution in seconds. (default: 10 seconds) timeout: int32, # The working directory for the command execution. (default: local bin directory) work_dir: string,}
Run Bash Script
Section titled “Run Bash Script”Execute a bash script on the device.
Metadata:
Section titled “Metadata:”- Name: RunBashScript
- Tags: bash, script, automation, execute, system, command, shell
- Category: Action
- Subcategory: Command > Bash
Description:
Section titled “Description:”This node runs a bash script on the device, allowing for the execution of complex scripts or automation tasks. It’s useful for running multiple commands in sequence, performing system operations, or automating maintenance tasks. The script to execute is defined through the CommandData
configuration, and the node is triggered by a boolean input. This node is ideal for applications that require advanced scripting capabilities or need to automate complex system tasks.
Inputs: (1)
- Trigger : Trigger
Outputs: (1)
Section titled “Outputs: (1)”- Sicript Output : The output of the command execution.
Configuration:
Section titled “Configuration:”The following configuration parameters can be set for this node:
ScriptNodeConfig: {
# The script to execute. script: string, # The timeout for the script execution in seconds. (default: 10 seconds) timeout: int32, # The arguments to pass to the script. args: string,}
Run Command
Section titled “Run Command”Execute a system-level command on the device.
Metadata:
Section titled “Metadata:”- Name: RunCommand
- Tags: command, system, bash, execute, automation, script, management
- Category: Action
- Subcategory: Command > Exec
Description:
Section titled “Description:”This node runs a system command on the device, such as ‘ls’, enabling the execution of system-level operations directly from the application. It’s useful for automation, executing scripts, or performing system management tasks. The command to execute is configured through the CommandSlug
configuration, and the node is triggered by a boolean input. This node allows for seamless integration of system commands into application workflows, adding scripting capabilities for enhanced control over the system.
Inputs: (1)
- Trigger : Trigger
Outputs: (0)
Section titled “Outputs: (0)”Configuration:
Section titled “Configuration:”The following configuration parameters can be set for this node:
CommandSlug: {
# Slug for Command slug: string,}