Commit f6ac9632 authored by qa_quantgroup's avatar qa_quantgroup

增加清除redis缓存

parent 1891a991
#!/bin/bash
ip=$1
#连接服务
function clear_redis(){
expect -c "
set timeout 10
spawn ssh root@${ip}
expect \"]#\"
send \"cd /home/qa-deploy-utils/qa_shell_script/redis_script\r\"
expect \"]#\"
send \"sh flush_all.sh\r\"
set timeout -1
expect \"]#\"
send \"exit\r\"
expect eof;"
}
clear_redis $ip
\ No newline at end of file
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