#!/usr/bin/expect -fset src_path [lindex $argv 0] //读取从bash传过来的参数set password ********spawn scp -P 22 -o GSSAPIAuthentication=no -r /home/dataProcess/HB_NRTM_hour_AH_2016111709_P01_END.CSV root@10.225.124.206:/root/jiakuanDataset timeout 300expect "root@10.225.124.206's password:"set timeout 300send "$password\r"set timeout 300send "exit\r"expect eof
scp自动输入密码
最新推荐文章于 2023-04-12 15:07:28 发布