Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/usr/bin/expect --
  2. # Test expect script to telnet.
  3.  
  4. spawn telnet 192.168.1.254
  5. expect "Username :"
  6. send "sumeo\r"
  7. expect "Password :"
  8. send "m30acc355\r"
  9. expect "_{sumeo}=>"
  10. send "ppp ifdetach intf=Internet\r"
  11. expect "_{sumeo}=>"
  12. send "ppp ifattach intf=Internet\r"
  13. expect "_{sumeo}=>"
  14. send "exit\r"
  15. # end of expect script.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement