mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 23:31:03 +00:00
Update whatisdoing.sh
Improved getting pid
This commit is contained in:
parent
d4a9836f1a
commit
8c0f86842e
@ -3,7 +3,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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user