while [ 1 == 1 ] ; do now=$(date "+%Y-%m-%d_%H:%M:%S") ; echo "=========================${now}===============================" ; echo "#Client-Monitor" ; redis-cli -h 192.168.10.99 -p 7001 -a hhly client list | grep monitor ; redis-cli -h 192.168.10.99 -p 7001 -a hhly info clients ; redis-cli -h 192.168.10.99 -p 7001 -a hhly info memory ;usleep 1000000 ; done
http://carlosfu.iteye.com/blog/2254571