Support Solaris

pull/262/head
neil 8 years ago
parent 22ea4004e1
commit e3c66532c5

@ -423,7 +423,7 @@ _ss() {
netstat -an -p tcp | grep LISTEN | grep ":$_port "
elif netstat -help 2>&1 | grep -- '-P protocol' >/dev/null ; then
#for solaris
netstat -an -P tcp | grep "\.$_port "
netstat -an -P tcp | grep "\.$_port " | grep "LISTEN"
else
netstat -ntpl | grep ":$_port "
fi

Loading…
Cancel
Save