Skip to content

anudeep652/rust-kill-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust kill Process

A simple CLI tool to kill a process by port This is a simple hobby project made by me to gain some experience in working with rust.
I felt exhaused by using kill -9 $(lsof -t -i:PORT) everytime I wanted to kill a process by port, so I made this tool.

Usage

clone the repo:

git clone https://github.com/anudeep652/rust-kill-process.git

cd rust-kill-process
cargo run -- PORT

Remember to replace PORT with the port number you want to kill


OR

Create an executable to run it locally anywhere in your local machine after cloning the repo
cargo install --path .

Now you can run anywhere in your terminal like this:

p-kill PORT

'p-kill' is the executable name, you can change it in Cargo.toml and you need to again create an executable.


Future plans

  • Add support for killing process by name
  • Add support for killing process by PID
  • Add better error handling

Contributing

If you are a rustacean and want to contribute to this project, feel free to open a PR.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages