#!/usr/bin/expect
set timeout 30
spawn scp -r /data/tomcat/webapps/ROOT/ [email protected]:/data/tomcat/webapps/
expect {
"yes/no" {send "yes\r";exp_continue}
"password:" {send "密码*******\r"}
}
interact
scp copy other server
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326871467&siteId=291194637
Recommended
Ranking