Skip to content

Commit

Permalink
getting pid fixes
Browse files Browse the repository at this point in the history
```sh
$ ~ pidof redis-server
# nothing

$ ~ ps aux | grep [r]edis
redis      593  0.0  0.0  36900  5564 ?        Ssl  Dec02   1:37 /usr/bin/redis-server 127.0.0.1:6379
klay     15927  0.0  0.0  16772  6068 pts/6    S+   13:58   0:00 redis-cli

$ ~ uname -a
Linux edge 3.17.4-1-ARCH redis#1 SMP PREEMPT Fri Nov 21 21:14:42 CET 2014 x86_64 GNU/Linux
```
  • Loading branch information
sergeyklay committed Dec 5, 2014
1 parent ff25d18 commit d4a9836
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
Expand Up @@ -3,7 +3,7 @@
#!/bin/bash
nsamples=1
sleeptime=0
pid=$(pidof redis-server)
pid=$(ps auxww | grep 'redis-server' | grep -v grep | awk '{print $2}')

for x in $(seq 1 $nsamples)
do
Expand Down

0 comments on commit d4a9836

Please sign in to comment.