Commit bb6bdaee authored by qa_quantgroup's avatar qa_quantgroup

update

parent ca328c78
#!/bin/bash #!/bin/bash
ip=$1 ip=$1
port=$2
#连接服务 #连接服务
function clear_redis(){ function clear_redis(){
expect -c " expect -c "
...@@ -8,11 +9,11 @@ function clear_redis(){ ...@@ -8,11 +9,11 @@ function clear_redis(){
expect \"]#\" expect \"]#\"
send \"cd /home/qa-deploy-utils/qa_shell_script/redis_script\r\" send \"cd /home/qa-deploy-utils/qa_shell_script/redis_script\r\"
expect \"]#\" expect \"]#\"
send \"sh flush_all.sh\r\" send \"sh flush_all.sh $port\r\"
set timeout -1 set timeout -1
expect \"]#\" expect \"]#\"
send \"exit\r\" send \"exit\r\"
expect eof;" expect eof;"
} }
clear_redis $ip clear_redis
\ 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