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

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 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


Shared Parameters

This spec also inherits all of the required and optional Shared Parameters