3 releases
0.2.8 | Aug 25, 2024 |
---|---|
0.2.5 | Aug 20, 2024 |
0.2.4 | Aug 19, 2024 |
#225 in Operating systems
386 downloads per month
41KB
808 lines
pipelight_exec crate
Crate from pipelight an automation cli.
lib.rs
:
!! API not stabilized - lacking documentation - do not use !!
About
Pipelight_exec is a crate for easy process management. It makes a best effort to leverage standard library.
Features:
-
Spawn and Kill background processes.
-
Display a detached running process standard outputs.
-
Get process execution time.
Example
Spawn a simple process in the background. or in other words, execute a process and detach it.
It keeps running after parent process exit and terminal exit.
let mut process = Process::new("echo test");
process.run_detached()?;
Pipe the process standards outputs to the parent.
let mut process = Process::new("echo test");
process.run_detached()?;
Find a running process, with handy search options.
let process_finder = Finder::new().seed("my_proc").root("/my/dir").search()?;
let pid = 1792;
let process_finder = Finder::new().pid(&pid).search()?;
Dependencies
~29–43MB
~771K SLoC