Telnet Connection from a Script
How can I write a script file that telnets to a Lantronix server and performs some action, i.e. logging into the attached device?
The 'Expect' program provides a programmable terminal interface for automating interaction with command line applications.
Expect can partially automate interaction which is especially useful for telnet, ssh, rlogin and many other applications that have no built-in scripting.
You can download "expect" from one of the links at the end of this article:
https://en.wikipedia.org/wiki/Expect
The article above includes examples of typical Expect scripts.
[Originally Published On: 12/20/1999 10:11 AM]