|#telnet <ip_add> <port>|
Connected to a.b.c.d.
Escape character is '^]'. << After that i have to
to get the router
I am trying to automate this using expect but after
telnet router expect enter to come to prompt.
I have the following script.
spawn telnet <ip> <port>
expect "\n" << here in expect what should i use
but it is not working.After i execute spawn command script got hung.