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
ccb96535
Commit
ccb96535
authored
Mar 23, 2016
by
neil
Browse files
compatible for windows netstat tool
parent
d3d884c1
Changes
1
Show whitespace changes
Inline
Side-by-side
le.sh
View file @
ccb96535
...
...
@@ -183,7 +183,12 @@ _ss() {
_port
=
"
$1
"
if
command
-v
"netstat"
>
/dev/null 2>&1
;
then
_debug
"Using: netstat"
if
netstat
-h
2>&1 |
grep
"
\-
p proto"
>
/dev/null
;
then
#for windows version netstat tool
netstat
-nb
-p
tcp |
grep
:
$_port
" "
else
netstat
-ntpl
|
grep
:
$_port
" "
fi
return
0
fi
if
command
-v
"ss"
>
/dev/null 2>&1
;
then
...
...
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