Documentation
¶
Overview ¶
Package shell provides a dutagent module that executes shell commands.
Index ¶
Constants ¶
View Source
const DefaultShellPath = "/bin/sh"
DefaultShellPath is the default path to the shell executable on the dutagent.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shell ¶
type Shell struct { Path string // Path is th path to the shell executable on the dutagent. If unset, [DefaultShellPath] is used. Quiet bool // Quiet suppresses stdout from the shell command, stderr will be forwarded regardless. }
Shell is a module that executes commands on the dutagent. It is non-interactive and does not support stdin. The shell command is executed with the -c flag and the command to execute as an argument.
Click to show internal directories.
Click to hide internal directories.