Created
December 10, 2019 07:46
-
-
Save yszheda/a71a6a8a251f43b19880fb0b0288b3d9 to your computer and use it in GitHub Desktop.
auto connect telnet without typing username and password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
spawn telnet 192.168.255.1 | |
expect "VxWorks login:" | |
send "MOTOMANrobot\r" | |
expect "Password:" | |
send "MOTOMANrobot\r" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment