linux_shell_轮询触发启动脚本

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

你可能感兴趣的:(linux)