自动登录过BSO的脚本
来源:互联网 发布:服务器同步备份软件 编辑:程序博客网 时间:2024/05/18 01:44
这个脚本是同事写的, 当然, 之前我自己也写了一个, 但没有像他下面一样加异常, 其余都是一样的. 记录一下, 以后要用直接用.
#!/usr/bin/expect
set username "****@163.com"
set password "password"
#Passing one of the IPs bellow maybe pass others.
set ip_list {
vs370.rch.kstart.com
9.123.100.210
}
set timeout 5
foreach {ip} $ip_list {
if [catch {
spawn telnet $ip
expect "Username:"
send "$username\r"
expect "Password:"
send "$password\r"
#wait to authenticate
expect {
"Successful" {puts "pass bso for $ip sucessfully."}
timeout {puts "you maybe have passed bso for $ip sucessfully."}
}
close
} result] {
puts "you maybe have passed bso for $ip sucessfully."
}
}
0 0
- 自动登录过BSO的脚本
- 自动登录过BSO脚本 ( by quqi99 )
- telnet自动登录的脚本
- 做自动登录脚本的必备--firebug
- 自动登录ssh的shell脚本
- SecureCRT 自动登录脚本
- ftp脚本自动登录
- secureCRT 自动登录脚本
- 自动登录FTP脚本
- ssh 自动登录脚本
- ssh自动登录脚本
- FTP自动登录脚本
- VB自动登录脚本
- expect脚本自动登录
- xshell自动登录脚本
- 自动登录OA脚本
- SSH自动登录脚本
- SSH自动登录脚本
- 委托的示例
- c# 人脸框截图处理
- 3.5 JS设置节点属性
- 做项目中遇到一个小问题 (要让容器与浏览器宽度,高度相等)
- SRWebSocket源码浅析
- 自动登录过BSO的脚本
- js 事件绑定on()的用法,以及对于其他绑定事件的比较
- The Balance (母函数)
- Jboss下使用spring配置实现JTA全局事务管理(下)
- spring的PreferencesPlaceholderConfigurer类对数据库密码进行加密
- J2EE系列之Hibernate4学习笔记(六)--Hibernate中对象的4种状态
- 美团面试
- MySQL
- 常见专业术语名词解释(持续更新)