while [ 1 ]do length=`redis-cli -h *.*.*.* -p 8000 llen eq` while [ $length -gt 1 ] do echo "length[${length}], sleep 3600 s" sleep 3600 length=`redis-cli -h *.*.*.* -p 8000 llen eq` done sh /home/users/**/test/sj.entry.sed