多linux服务器之间实现文件自动复制
-
2024-09-26 06:25:54
- 来源:本站整理
-
在手机上看
扫一扫立即进入手机端
#!/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
相关资讯
更多-
运满满司机找货app手机版
中文|151.8M
-
美图秀秀64位版本
中文|179.4M
-
小米usb驱动程序
中文|
-
2345看图王电脑版
中文|25.2M
-
速8酒店
中文|49.6M
-
全免漫画软件
中文|37.5M
-
昨日硝烟
中文|795.33MB
-
filezilla server配置ftp服务器正式版
中文|6.4M
-
xb21cn Windows Server 2022微软服务器版操作系统
中文|2.58G
-
恐龙岛冒险模拟器游戏
中文|157.0M
-
儿童七巧板游戏APP
中文|123.5M
-
贝贝环游世界之旅
中文|56.8M