I have an application which uses TCP port 16969. It sometimes requires a quick software kernel reboot on the fly. But if I launch it too fast, I am locked with

> 
> Exception in thread "main" java.net.BindException: Address already in use
> 
> 
> 

So I want to trigger my Bash script which can kill any running or listening port with 16969, but how can I do that?

```
$ lsof -w -n -i tcp:16969 # this gives me a list of 50 lines but how can I kill them all?

```