pslurp.pssh功能是将长途主机的文件批量复制到本地,在复制过程中留意
pslurp [-vAr] [-h hosts_file] [-H [user@]host[:port]] [-l user] [-p par][-o outdir] [-e errdir] [-t timeout] [-O options] [-x args] [-X arg] [-L localdir] remote local(本地名)
pscp.pssh功能是将本地文件批量复制到长途主机,其语法构造为:
指定大年夜长途主机下载文件存储的目次,local是下载到本地后的名称,语法构造中必须跟local
-a
- #!/bin/expect
- #
- if { $argc != 2 } {
- send_user "usage: send-rsa-id file host \n"
- exit
- }
- #define var
- set password wbxue.blog
- set file [lindex $argv 0 ]
- set ip [lindex $argv 1 ]
- #start exec command
- spawn ssh-copy-id -i $file root@$ip
- expect {
- "yes/on" {send "yes\r";exp_continue}
推荐阅读
51CTO诚邀您9月23号和秒拍/国美/美团元专家一路聊智能CDN的优化之路,抓紧时光哦! 编者按:苹不雅的新一代 iPhone 已经于北京时光 9 月 13 日凌晨落下帷幕,新品资讯请移步这里 。而在 iP>>>详细阅读
本文标题:批量管理自动化运维100台小规模服务器
地址:http://www.17bianji.com/lsqh/37457.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示