Commit faee751a authored by qa_quantgroup's avatar qa_quantgroup

update

parent e6999afd
...@@ -9,15 +9,19 @@ project_path=`cat $config_server/get_env_ip.sh` ...@@ -9,15 +9,19 @@ project_path=`cat $config_server/get_env_ip.sh`
for ip_last_num in $project_path for ip_last_num in $project_path
do do
echo "------------------IP-${IP_host_first}${ip_last_num}------------------" if [[ "$ip_last_num" == "50" ]]; then
expect -c " echo " not in 50 "
set timeout 10 else
spawn ssh root@${IP_host_first}${ip_last_num} echo "------------------IP-${IP_host_first}${ip_last_num}------------------"
expect \"]#\" expect -c "
send \"sh /home/qa-deploy-utils/qa_shell_script/$1\r\" set timeout 10
set timeout -1 spawn ssh root@${IP_host_first}${ip_last_num}
expect \"]#\" expect \"]#\"
send \"exit\r\" send \"sh /home/qa-deploy-utils/qa_shell_script/$1\r\"
expect eof;" set timeout -1
echo "======================END=================================" expect \"]#\"
send \"exit\r\"
expect eof;"
echo "======================END================================="
fi
done done
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