Commit bb6bdaee authored by qa_quantgroup's avatar qa_quantgroup

update

parent ca328c78
#!/bin/bash
ip=$1
port=$2
#连接服务
function clear_redis(){
expect -c "
......@@ -8,11 +9,11 @@ function clear_redis(){
expect \"]#\"
send \"cd /home/qa-deploy-utils/qa_shell_script/redis_script\r\"
expect \"]#\"
send \"sh flush_all.sh\r\"
send \"sh flush_all.sh $port\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
expect eof;"
}
clear_redis $ip
\ No newline at end of file
clear_redis
......@@ -117,7 +117,7 @@ function deleteAlldata()
redis-cli -h $ip -p 6379 del $redis_key
#redis-cli -h $ip -p 6379 keys *$token* | xargs redis-cli -h $ip -p 6379 del
fi
fi
fi
}
deleteAlldata $ip $phone_no
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment