Auto Run or Execute Batch Commands in Telnet
April 8, 2010 | Filed under Software;
TELNET is a network protocol used on the Internet or local area networks to provide a bidirectional interactive text-oriented communications facility via a virtual terminal connection. Many years ago many linux servers can be configured remotely using telnet but due to its lack of security, Telnet has been replaced with Secure Shell (SSH) on most servers.
Even Vista and Windows 7 doesn’t install the Telnet client by default and you will have to manually install it from Windows Features. If for some reason you still use Telnet to execute commands in remote server, you must find that using telnet is troublesome because you need to manually type the commands one at a time.
AutoTelnet solves this annoyance by letting you execute multiple commands in Telnet automatically. You can write all the commands in a text file and make AutoTelnet read from that file. For example you can create a text file with commands that telnet to your router, send the username and password and then a command to restart the router.
Do note that AutoTelnet is not a client where you can manually input commands as it only reads commands from the text file. If you do not specify which text file to execute, by default it will load the commands.txt file. Use the /f parameter to specify text file and /o to enable output log which will create output.txt file in the same folder as AutoTelnet.