Crate sal_process

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

CommandResult
A structure to hold command execution results
ProcessInfo
RunBuilder
A builder for configuring and executing commands or scripts

Enums§

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