I connect to a Cisco router using telnet.
The connection times out every 3 minutes.
How do stop my telnet session from getting disconnected from the router due to a timeout.
I understand that putty and SecureCRT can send a null or escape character periodically to stop the session (telnet or SSH) from timing out.
How do I do this on Linux without a 3rd party program ? I use the following script as a startup script when starting my terminal:
#!/usr/bin/expect -f spawn telnet <Router IP Address> expect -re "ogin: " send "*******\n" expect -re "assword:" send "***********\n" sleep 2 expect "Router>" interact