/
Telnet Connection from a Script

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]

Related content

Sending a Break Through a Telnet Socket Connection in Windows #2
Sending a Break Through a Telnet Socket Connection in Windows #2
More like this
Using arp and telnet to assign an IP address to a CoBos device server
Using arp and telnet to assign an IP address to a CoBos device server
More like this
Accessing Monitor Mode using telnet - (Cobox, UDS-10, UDS100_200, UDS1100_2100, XPort, WiPort, WiBox, xPico)
Accessing Monitor Mode using telnet - (Cobox, UDS-10, UDS100_200, UDS1100_2100, XPort, WiPort, WiBox, xPico)
More like this
I Forgot My Telnet & Web Manager Password On XPort, UDS1100, XPress-DR or other CoBos device server.
I Forgot My Telnet & Web Manager Password On XPort, UDS1100, XPress-DR or other CoBos device server.
More like this
Using RFC2217 for remote control of most CoBos and Evolution device server serial ports
Using RFC2217 for remote control of most CoBos and Evolution device server serial ports
More like this
Sending Break through CoBos based device server's port to an attached device
Sending Break through CoBos based device server's port to an attached device
More like this