Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- import pexpect
- import sys
- child = pexpect.spawn('telnet asw-47-2-4.eitny.int')
- child.expect('Username:')
- child.sendline('jason')
- child.expect('Password:')
- child.sendline('password')
- child.expect('asw-47-2-4#')
- child.sendline('reload \n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement