多linux服务器之间实现文件自动复制
-
2023-05-17 05:23:43 - 来源:本站整理
-
在手机上看
扫一扫立即进入手机端
#!/usr/bin/expect
set password 1234 #密码
#download
spawn scp /root/test.jar root@192.168.1.2:/usr/local/
set timeout 300
expect “192.168.1.2's password:“
set timeout 3000
#exec sleep 1
send “$password\r“
set timeout 300
send “exit\r“
#expect eof
interact
spawn scp /root/test.jar root@192.168.1.3:/usr/local/
set timeout 300
expect “root@192.168.1.3's password:“
set timeout 3000
#exec sleep 1
send “$password\r“
set timeout 300
send “exit\r“
interact
相关资讯
更多-
三角洲漫游者游戏
中文|82.3M
-
joytokey电脑安装版
中文|4.5M
-
中国兰花交易网最新版
中文|61.5M
-
月子食谱怀孕育儿
中文|13.1M
-
罗技gpw鼠标驱动2022最新版
中文|
-
华硕rog armoury鼠标通用驱动程序
中文|
-
vivo互传电脑版
中文|138.7M






