Commit 2ed3f09c authored by Serghei Iakovlev's avatar Serghei Iakovlev Committed by antirez
Browse files

Update whatisdoing.sh

Improved getting pid
parent 77b997d4
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#!/bin/bash #!/bin/bash
nsamples=1 nsamples=1
sleeptime=0 sleeptime=0
pid=$(ps auxww | grep 'redis-server' | grep -v grep | awk '{print $2}') pid=$(ps auxww | grep '[r]edis-server' | awk '{print $2}')
for x in $(seq 1 $nsamples) for x in $(seq 1 $nsamples)
do do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment