ppk

Crates.ioppk
lib.rsppk
version0.1.1
sourcesrc
created_at2023-04-23 20:08:03.813691
updated_at2023-04-23 20:13:18.273358
descriptionfind the port, and kill its process!
homepage
repository
max_upload_size
id846797
size12,554
(lrwx00t)

documentation

README

killport

Find the port, and kill it!

Usage

Crate Installation

❯ cargo install ppk

❯ ppk
Usage: ppk <port>

❯ sudo ppk 2222

Run from source

# from source
❯ sudo cargo run -- 2222
Port 2222 is listening.
TCP 2222: [71064]
Found matching command: Process { pid: 71064, create_time: 1682278718.446401s, busy: 97.469151ms, instant: Instant { t: 3989048305352067 } }
Got 71064
Process 71064 terminated
Commit count: 0

cargo fmt