Just a coder and a dad. I love my family and I love to code!!!! started coding at 11, so I have 25 years under my belt. Still love learning about it every day. Black lives matter!
Tried playing around with this and read up on the man page. Seems like it doesn't know about options -k or -n (-kn). I tried variations and none worked.
Just a coder and a dad. I love my family and I love to code!!!! started coding at 11, so I have 25 years under my belt. Still love learning about it every day. Black lives matter!
How about "different, not better"?
fuser -kn tcp $PORT_NUMBER
will try to drop akill -9
on any process using the specified TCP port.Out of deference to Ben Sinclair's thoughtful counsel you can also specify a signal like this:
fuser -$SIGNAL_NUMBER_OR_NAME -kn tcp $PORT_NUMBER
Tried playing around with this and read up on the man page. Seems like it doesn't know about options -k or -n (-kn). I tried variations and none worked.
How does that old joke about IT standards go, again? : \
The GNU
fuser
implementation from psmisc accepts -n and -k options, but distribution is far from universal.ya figured that was the case lol.
I want this to work for you.