Skip to main content

Module command

Module command 

Source
Expand description

Command execution over SSH

Provides the CommandOutput struct and exec_command functionality for executing commands over an SSH connection with timeout support.

This module is designed to be compatible with both GNU and BusyBox-based systems (e.g., Debian/Ubuntu and Alpine Linux). All command detection and process monitoring uses portable mechanisms that work across distributions.

Structs§

CommandOutput
Output from a command execution
ProcessStatus
Process status check result
TransferRawOutput
Output from a raw streaming command execution.

Functions§

wrap_command_with_timeout
Wrap a command with the timeout utility