Skip to content

vincentjames501/fish-kill-on-port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


kill-on-port

Plugin for Oh My Fish.

Install

$ omf install kill-on-port

Usage

Usage: kill-on-port [OPTION]...
Kills one or more processes using the given port(s).

Options:
  -l, --list    List processes using the specified ports (does not kill)
	-r, --root		Attempts to kill the process as root
	-f, --force		Does not ask for confirmation
  -p, --port    The port to to look at (one or more required)
	-h, --help		Prints usage

Example

# Start two Python HTTP servers on ports 8001 and 8002 respectfully
$ python -m SimpleHTTPServer 8001 > /dev/null &       
$ python -m SimpleHTTPServer 8002 > /dev/null &     

# Let's kill em'!
$ kill-on-port 8001 8002                                                 
Found process named python2.7 with process id 66715 using port 8001
Continue (y/n): y
Successfully killed 66715
Found process named python2.7 with process id 66748 using port 8002
Continue (y/n): y
Successfully killed 66748

License

MIT © Vincent Pizzo et al

About

Kills a process that is using the given port

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages