ProcessTracker is a lightweight utility born out of necessity to solve the "orphaned process" problem. 🧟♂️ When applications working with COM objects (like Microsoft Word, Excel) crash or close unexpectedly, they often leave behind orphaned processes consuming system resources... because apparently, proper process management is optional these days. 🙄
This tool forcefully terminates these stubborn processes (or no 🌚), keeping your system clean and efficient. 🔫💥 Built with equal parts desperation, StackOverflow wisdom, and a generous helping of ChatGPT consultations. Because sometimes you need to take process management into your own hands!🤌
- Process Relationship Tracking: Link parent and child processes
- Automatic Cleanup: Terminate orphaned processes when parent applications exit
- Flexible Monitoring: Configure monitoring intervals and auto-exit timeouts
- Simple CLI Interface: Easy-to-use command line tools
- Process discovery and monitoring
- Detailed process information collection
- Configuration management via JSON
- Command-line interface for easy interaction
- Cross-platform compatibility (primarily Windows)
proctrack [OPTIONS] <COMMAND>| Command | Description | Example |
|---|---|---|
add 🔗 |
Add a process pair to track | proctrack add --main 1234 --child 5678 |
remove ✂️ |
Remove a process pair from tracking | proctrack remove --main 1234 --child 5678 |
list 📋 |
List all tracked process pairs | proctrack list |
clear 🧹 |
Clear all tracked process pairs | proctrack clear |
monitor 👁️ |
Start monitoring mode with live updates | proctrack monitor --interval 5 --auto-exit 60 |
stop 🛑 |
Stop the background monitor process | proctrack stop |
test* 🧪 |
Create and monitor a test process pair | proctrack test |
Note
The test command is only available in Debug builds.
Monitor with 5-second intervals and auto-exit after 60 seconds:
.\ProcessTracker.Cli.exe monitor `
--interval 5 `
--auto-exit 60Track Word processes launched by your application:
.\ProcessTracker.Cli.exe `
add `
--main $YourAppPID `
--child $WordPID`
&& `
.\ProcessTracker.Cli.exe monitor- ProcessTracker: Core library containing the monitoring functionality
- ProcessTracker.Cli: Command-line interface for interacting with the system
- ConfigRunner: Configuration management utility
Contributions are welcome! Feel free to submit a Pull Request or open an Issue.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the license file for details.
This project is developed with pride in Ukraine.
In these challenging times, Ukrainian developers continue to create and innovate.
Your support means the world to us.
"Code like resilience and language matters"