Actually, I am also looking to run some commands on a linux machine after connecting through the telnet. I want to do this from a WINDOWS batch file.
My requirement is actually like this - Run a batch file which opens a telnet connection to a linux machine, run some commands in the telnet and then close the telnet connection.
Whenever I try to open a telnet connection from a batch file, it is asking for the username and password. Is there a way we can pass the username and passwords to the telnet window?
Also, in case we are able to login, how can we execute the commands in the telnet from our batch file?
It would be great if you could share your batch file with me.
My email ID is firstname.lastname@example.org
Thanks in advance,