Expand description
§SAL Process Package
The sal-process
package provides functionality for managing and interacting with
system processes across different platforms. It includes capabilities for:
- Running commands and scripts
- Listing and filtering processes
- Killing processes
- Checking for command existence
- Screen session management
This package is designed to work consistently across Windows, macOS, and Linux.
Modules§
- rhai
- Rhai wrappers for Process module functions
Structs§
- Command
Result - A structure to hold command execution results
- Process
Info - RunBuilder
- A builder for configuring and executing commands or scripts
Enums§
- Process
Error - Error type for process management operations
- RunError
- Error type for command and script execution operations
Functions§
- kill
- Kill processes matching a pattern.
- kill_
screen - Kills a screen session.
- new_
screen - Executes a command in a new screen session.
- process_
get - Get a single process matching the pattern (error if 0 or more than 1 match).
- process_
list - List processes matching a pattern (or all if pattern is empty).
- run
- Create a new RunBuilder for executing a command or script
- run_
command - Run a command or multiline script with arguments
- run_
silent - Run a command or multiline script with arguments silently
- which
- Check if a command exists in PATH.