标签:mission str scp color 脚本 route 4.6 time park
#!/usr/bin/expect set proj_dir /home/jksong/NewsSpark/openid_for_commonid set tmp_data_dir $proj_dir/data_src/openid_dir set password yourpassword spawn scp -r $tmp_data_dir news@10.49.94.67:/data/news/data/commid_stroage_server/original set timeout 300 for {} {1} {} { expect { "*re you sure you want to continue connecting (yes/no)?" { send "yes\r" } "*assword:" { send "$password\r" } "*ermission denied*" { break } "*No route to host" { break } "*No such file or directory" { break } timeout { break } eof { break } } } interact exit
标签:mission str scp color 脚本 route 4.6 time park
原文地址:http://www.cnblogs.com/siqi/p/6237703.html