Skip to content

Instantly share code, notes, and snippets.

@yszheda
Created December 10, 2019 07:46
Show Gist options
  • Save yszheda/a71a6a8a251f43b19880fb0b0288b3d9 to your computer and use it in GitHub Desktop.
Save yszheda/a71a6a8a251f43b19880fb0b0288b3d9 to your computer and use it in GitHub Desktop.
auto connect telnet without typing username and password
#!/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