mirror of
https://github.com/rwxrob/dot
synced 2024-11-16 21:25:29 +00:00
10 lines
159 B
Plaintext
10 lines
159 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
case "$PLATFORM" in
|
||
|
mac)
|
||
|
netstat -an -ptcp | grep LISTEN
|
||
|
lsof -i -P | grep -i "listen"
|
||
|
;;
|
||
|
*) netstat -tulpn |grep LISTEN ;;
|
||
|
esac
|