Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet script

Status
Not open for further replies.

brk1221

MIS
Jan 29, 2002
230
US
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?

Thanks
 
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.

 
I won't be able to install anything on the remote machine, it's out isp's web server.
 
In that case you will need to use something like SSH with public/private keys.

Google for PuTTy ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top