您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. 用expect实现的自动登录到多台服务器的shell脚本

  2. 自动登录到多台服务器的shell脚本,用expect来实现的一段代码,需要的朋友可以参考下
  3. 所属分类:其它

    • 发布日期:2020-09-15
    • 文件大小:20kb
    • 提供者:weixin_38658568
  1. 用expect实现的自动登录到多台服务器的shell脚本

  2. 代码如下:#!/usr/bin/expect -fset ipaddress [lindex $argv 0]set passwd [lindex $argv 1]set timeout 30spawn ssh root$ipaddress#expect “yes/no”#send “yesr”expect “password:”send “$passwdr”expect “]*”send “mkdir -p /tmp/haha/haha2r”send “exitr”**************
  3. 所属分类:其它

    • 发布日期:2021-01-11
    • 文件大小:24kb
    • 提供者:weixin_38628211