Skip to content

Commit

Permalink
Update whatisdoing.sh
Browse files Browse the repository at this point in the history
Improved getting pid
  • Loading branch information
sergeyklay authored and antirez committed Dec 9, 2014
1 parent 2533e29 commit e4d4eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/whatisdoing.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e4d4eff

Please sign in to comment.