https://github.com/binsabry/processterminator
This program terminates processes with configurable options for graceful handling.
https://github.com/binsabry/processterminator
cli monitor open-source process terminate utility
Last synced: 5 months ago
JSON representation
This program terminates processes with configurable options for graceful handling.
- Host: GitHub
- URL: https://github.com/binsabry/processterminator
- Owner: BinSabry
- License: mit
- Created: 2025-03-21T17:24:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T22:51:50.000Z (over 1 year ago)
- Last Synced: 2025-09-19T19:40:49.581Z (10 months ago)
- Topics: cli, monitor, open-source, process, terminate, utility
- Language: C#
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Downloads
*Latest release* [v0.1.0-beta](https://github.com/BenSabry/ProcessTerminator/releases/tag/v0.1.0-beta)
*All releases* [releases](https://github.com/BenSabry/ProcessTerminator/releases)
# ProcessTerminator
```
Usage: ProcessTerminator [OPTIONS] process_name
Description:
This program terminates processes with configurable options for graceful handling.
It allows you to:
- Wait for another process to exit before proceeding.
- Specify a delay before sending a close request.
- Forcefully terminate if the process doesn't exit within the wait time.
- Cleanup leftover files and directories after termination.
Ideal for controlled process termination, ensuring system stability.
Options:
-h, --help Show this help message and exit.
-v, --version Display the program version and exit.
-m, --monitor Use to specify a process to wait for before proceeding.
-i, --interval Control how often the monitored process is checked.
-d, --delay Set a time buffer before sending a close request.
-c, --command Send a custom command before attempting to close the process.
-w, --wait Set a time buffer to allow the target process to close naturally.
-r, --remove Paths (comma-separated) to remove after process termination.
Arguments:
process_name The name of the process to terminate (required)
Note:
All time-related options (such as delay intervals) are specified in seconds.
Examples:
ProcessTerminator whatsapp
Attept to exit 'whatsapp' process immediately.
ProcessTerminator -m chrome firefox
Wait for the 'chrome' process to exit before attempting to exit 'firefox'.
ProcessTerminator -d 10 spotify
Delay for 10 seconds before attempting to exit 'spotify'.
ProcessTerminator -c "custom_command" -r "D:\temp1,D:\temp2\file.ext" exif
Send a custom command to 'exif' before attempting to close it.
Then delete 'D:\temp1' and 'D:\temp2\file.ext' after termination.
```