Skip to main content

Module process

Module process 

Source
Expand description

Process execution utilities

Provides reusable functions for executing commands with proper error handling and output parsing.

Functionsยง

execute_command
Execute a command asynchronously and return its output
execute_command_optional
Execute a command and return output, ignoring errors
execute_command_sync
Execute a command synchronously and return its output
execute_command_sync_optional
Execute a command synchronously and return output, ignoring errors
get_parent_pid
Get parent process ID (Unix only)
get_process_name
Get process name from PID (Unix only)