runproclike-0.2.0 is not a library.
runproclike
runproclike is a lightweight command-line utility that analyzes a running process by its PID and prints the command and its environment in a reproducible form. It's especially useful for debugging, replicating process states, or migrating workloads.
Features
- Generates a detailed output of the process's environment, command line, and execution context.
- Inspired by the runlike tool, which focuses on reconstructing Docker commands.
runproclikeextends this concept to Linux processes.
Installation
Using Cargo
Using Docker
Don't want to build and install anything? All good, you can leverage the docker image built precisely for that!
Building from source
- Clone the repository:
- Build
Usage
runproclike [OPTIONS] --pid <PID>
Options:
Examples
Reproduce a Process:
How it Works
runproclike inspects a process's details by reading procfs files and outputs the information needed to recreate the process in a shell.
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature/fix.
- Write tests ;)
- Submit a pull request.