Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
14165e5a
Commit
14165e5a
authored
Mar 23, 2016
by
neil
Browse files
minor
parent
edf08da6
Changes
1
Show whitespace changes
Inline
Side-by-side
le.sh
View file @
14165e5a
...
@@ -194,7 +194,7 @@ _ss() {
...
@@ -194,7 +194,7 @@ _ss() {
#for windows version netstat tool
#for windows version netstat tool
netstat
-anb
-p
tcp |
grep
"LISTENING"
|
grep
:
$_port
" "
netstat
-anb
-p
tcp |
grep
"LISTENING"
|
grep
:
$_port
" "
else
else
if
netstat
-help
2>&1 |
grep
"-p protocol"
>
/dev/null
;
then
if
netstat
-help
2>&1 |
grep
"
\
-
p protocol"
>
/dev/null
;
then
netstat
-an
-p
tcp |
grep
LISTEN |
grep
:
$_port
" "
netstat
-an
-p
tcp |
grep
LISTEN |
grep
:
$_port
" "
else
else
netstat
-ntpl
|
grep
:
$_port
" "
netstat
-ntpl
|
grep
:
$_port
" "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment