Skip to content

Instantly share code, notes, and snippets.

@reyramos
Created May 14, 2014 19:00
Show Gist options
  • Select an option

  • Save reyramos/e68a9b3fb0bc82fc8469 to your computer and use it in GitHub Desktop.

Select an option

Save reyramos/e68a9b3fb0bc82fc8469 to your computer and use it in GitHub Desktop.
Killport on linux (ubuntu)
#!/bin/sh
PNUMPER=$1;
kill -9 `lsof -w -n -i tcp:$PNUMPER| awk '{print $2}'|awk 'END{print}'`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment