os.run-command
Run a command. Will be run in the support bundle container if docker run replicated/support-bundle is used. To run in a custom container, use docker.run instead
collect:
v1:
- os.run-command:
output_dir: /system/commands/ping-google
name: date
collect:
v1:
- os.run-command:
output_dir: /system/commands/ping-google
name: cat
args:
- /etc/os-release
Required Parameters
name- The command to run
Optional Parameters
args- The command argumentsdir- The working directory of the commandenv- Specifies additional environment variables
Outputs
stderr- The standard error of the commandstdout- The standard output of the command
Shared Parameters
This spec also inherits all of the required and optional Shared Parameters