A printenv
rewrite in Rust.
paru -S printenv2
cargo install printenv2
if you already have Rust development environment setup.printenv2
comes with the ability to read environment variables of another running process.
Basic usage: ```sh
printenv2 --pid 1000 ```
Platform-specifics:
| Platform | Environment variables at startup | Environment variables in present |
|-------------|----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Linux | printenv2 --pid <PID>
| Unsafe[^1].printenv2 --debugger-helper
generates a shell script for that using gdb
.sh <(printenv2 --debugger-helper=gdb) <PID> \| printenv2 --load -
.sudo
is likely required. |
| Windows | Unsupported. | Unsafe[^1].printenv2 --pid <PID>
|
| Unix (*BSD) | printenv2 --pid <PID>
| Unsafe[^1].printenv2 --debugger-helper
generates a shell script for that using gdb
.sh <(printenv2 --debugger-helper=gdb) <PID> \| printenv2 --load -
.sudo
is likely required. |
| macOS | Unsupported. | Unsupported. |
| Other | Unsupported. | Unsupported. |
MIT