Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/expect --
- # Test expect script to telnet.
- spawn telnet 192.168.1.254
- expect "Username :"
- send "sumeo\r"
- expect "Password :"
- send "m30acc355\r"
- expect "_{sumeo}=>"
- send "ppp ifdetach intf=Internet\r"
- expect "_{sumeo}=>"
- send "ppp ifattach intf=Internet\r"
- expect "_{sumeo}=>"
- send "exit\r"
- # end of expect script.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement