标签:sel rac log 选择 堡垒机 password bsp html com
参考:http://www.cnblogs.com/iloveyoucc/archive/2012/05/11/2496433.html
自己的小例子:
login_ssh.exp
1 #!/usr/bin/expect 2 set timeout 30 3 spawn ssh xxx@xxx 4 expect "Password:" 5 send "xxx\r" 6 expect "Select server:" 7 send "x\r" 8 expect -re ".*xxx.*" 9 spawn ssh xxx@xxx 10 expect -re ".*password:" 11 send "xxx\r" 12 expect -re ".*xxx.*" 13 send "cd /xxx\r" 14 interact
标签:sel rac log 选择 堡垒机 password bsp html com
原文地址:http://www.cnblogs.com/jellyabd/p/6055030.html