Guest User

Untitled

a guest
Sep 19th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. #!/bin/bash
  2. # pass a port to the script or default to 8080
  3. x=8080
  4. if [ $1 ];
  5. then
  6. x=$1
  7. fi
  8.  
  9. lsof -nP -iTCP:$x | grep LISTEN
Add Comment
Please, Sign In to add comment