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

This content is associated with a legacy version of the Replicated product. For the current Replicated product documentation, see docs.replicated.com.

os.run-command

type object

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 arguments

  • dir - The working directory of the command

  • env - Specifies additional environment variables

Outputs

  • stderr - The standard error of the command

  • stdout - The standard output of the command