Hi, I need to create a batch file on a windows machine to telnet into a remote linux box and run a script and logout. How can I automate the login process in the batch file?
Try Using a program called expect.
I am not sure that you can use a batch file to do interactive scripting, however expect will let you do this.
Once you start reading how it works I think you will understand.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.