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
redis
Commits
8c0f8684
Commit
8c0f8684
authored
Dec 05, 2014
by
Serghei Iakovlev
Browse files
Update whatisdoing.sh
Improved getting pid
parent
d4a9836f
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/whatisdoing.sh
View file @
8c0f8684
...
...
@@ -3,7 +3,7 @@
#!/bin/bash
nsamples
=
1
sleeptime
=
0
pid
=
$(
ps auxww |
grep
'
r
edis-server'
|
grep
-v
grep
|
awk
'{print $2}'
)
pid
=
$(
ps auxww |
grep
'
[r]
edis-server'
|
awk
'{print $2}'
)
for
x
in
$(
seq
1
$nsamples
)
do
...
...
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