File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ function port_status() {
7474 #
7575 # Sample output:
7676 # 0.0.0.0:25000 7506/sshd
77- ret=$( sudo netstat -tunlp --inet | awk -v port=:$1 ' $4 ~ port && $6 ~ /LISTEN/ { print $4 " " $7 }' || echo ' Unbound' ) ;
77+ ret=$( sudo netstat -tunlp --inet | awk -v port=" :$1 $ " ' $4 ~ port && $6 ~ /LISTEN/ { print $4 " " $7 }' || echo ' Unbound' ) ;
7878 echo " $ret " ;
7979}
8080
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ function port_status() {
191191 #
192192 # Sample output:
193193 # 0.0.0.0:25000 7506/sshd
194- ret=$( sudo netstat -tunlp --inet | awk -v port=:$1 ' $4 ~ port && $6 ~ /LISTEN/ { print $4 " " $7 }' || echo ' Unbound' ) ;
194+ ret=$( sudo netstat -tunlp --inet | awk -v port=" :$1 $ " ' $4 ~ port && $6 ~ /LISTEN/ { print $4 " " $7 }' || echo ' Unbound' ) ;
195195 echo " $ret " ;
196196}
197197
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ function port_status() {
186186 #
187187 # Sample output:
188188 # 0.0.0.0:25000 7506/sshd
189- ret=$( sudo netstat -tunlp --inet | awk -v port=:$1 ' $4 ~ port && $6 ~ /LISTEN/ { print $4 " " $7 }' || echo ' Unbound' ) ;
189+ ret=$( sudo netstat -tunlp --inet | awk -v port=" :$1 $ " ' $4 ~ port && $6 ~ /LISTEN/ { print $4 " " $7 }' || echo ' Unbound' ) ;
190190 echo " $ret " ;
191191}
192192
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ function port_status() {
186186 #
187187 # Sample output:
188188 # 0.0.0.0:25000 7506/sshd
189- ret=$( sudo netstat -tunlp --inet | awk -v port=:$1 ' $4 ~ port && $6 ~ /LISTEN/ { print $4 " " $7 }' || echo ' Unbound' ) ;
189+ ret=$( sudo netstat -tunlp --inet | awk -v port=" :$1 $ " ' $4 ~ port && $6 ~ /LISTEN/ { print $4 " " $7 }' || echo ' Unbound' ) ;
190190 echo " $ret " ;
191191}
192192
You can’t perform that action at this time.
0 commit comments