Commit e3c66532 authored by neil's avatar neil
Browse files

Support Solaris

parent 22ea4004
...@@ -423,7 +423,7 @@ _ss() { ...@@ -423,7 +423,7 @@ _ss() {
netstat -an -p tcp | grep LISTEN | grep ":$_port " netstat -an -p tcp | grep LISTEN | grep ":$_port "
elif netstat -help 2>&1 | grep -- '-P protocol' >/dev/null ; then elif netstat -help 2>&1 | grep -- '-P protocol' >/dev/null ; then
#for solaris #for solaris
netstat -an -P tcp | grep "\.$_port " netstat -an -P tcp | grep "\.$_port " | grep "LISTEN"
else else
netstat -ntpl | grep ":$_port " netstat -ntpl | grep ":$_port "
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment