$ for i in {1..25}; do /sda/Percona-Server-5.6.21-rel70.0-693.Linux.x86_64-debug/bin/mysql --socket=/dev/shm/1416786018/subreducer/$i/socket.sock -uroot -e "SHOW FULL PROCESSLIST\GSHOW GLOBAL VARIABLES LIKE 'pid_file'";done 2>&1 | egrep "Time: |pid_file" | grep -v "Time: 0$"
Handier still. Change 1416... to running reducer /dev/shm dir.
$ for i in {1..25}; do /sda/Percona- Server- 5.6.21- rel70.0- 693.Linux. x86_64- debug/bin/ mysql --socket= /dev/shm/ 1416786018/ subreducer/ $i/socket. sock -uroot -e "SHOW FULL PROCESSLIST\GSHOW GLOBAL VARIABLES LIKE 'pid_file'";done 2>&1 | egrep "Time: |pid_file" | grep -v "Time: 0$"
Handier still. Change 1416... to running reducer /dev/shm dir.