#!/bin/bash for ((i=1;i<=27;i++)) do myxrgsu done
#!/usr/bin/expect set timeout 10 spawn xrgsu -a expect "lease input your user name:" send "用户名\r" expect "lease input your password:" send "密码\r" expect "Use DHCP,1-Use,0-UnUse(Default: 0):" send "0\r" expect "Use default auth parameter,0-Use 1-UnUse(Default: 0):" send "0\r" sleep .2 set timeout 10 expect "lease input 'unauth' to LogOff:" set timeout 360000 expect "xrgsu exit!" sleep .2 send_user "Reconnect please.\r\r" close #end
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页