Update whatisdoing.sh

Improved getting pid
This commit is contained in:
Serghei Iakovlev
2014-12-05 18:48:20 +02:00
committed by antirez
parent 77b997d429
commit 2ed3f09cc3

View File

@ -9,7 +9,7 @@
#!/bin/bash
nsamples=1
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)
do