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
7ebecf38
Commit
7ebecf38
authored
Mar 21, 2017
by
neil
Committed by
GitHub
Mar 21, 2017
Browse files
Merge pull request #737 from Neilpang/dev
Dev
parents
52cdedcb
0a5eaec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
acme.sh
View file @
7ebecf38
...
@@ -1131,8 +1131,12 @@ _ss() {
...
@@ -1131,8 +1131,12 @@ _ss() {
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
"
|
grep
"LISTEN"
netstat
-an
-P
tcp |
grep
"
\.
$_port
"
|
grep
"LISTEN"
else
elif
netstat
-help
2>&1 |
grep
"
\-
p"
>
/dev/null
;
then
#for full linux
netstat
-ntpl
|
grep
":
$_port
"
netstat
-ntpl
|
grep
":
$_port
"
else
#for busybox (embedded linux; no pid support)
netstat
-ntl
2>/dev/null |
grep
":
$_port
"
fi
fi
fi
fi
return
0
return
0
...
...
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