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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script telnet connection

Status
Not open for further replies.

Yarka

Technical User
Jan 14, 2007
192
ES
hi,
I've tried to do this using cgywin, but it doesn't work.
Now, I want to do a script using batch on windows server 2000.
This script is to router configuration.
My script is:

@echo off
(echo routerpass
echo routerpass
echo enable
echo routerpass
echo configuration terminal
...
) | telnet router_ip

but it doesn't work either.
How can I do it?
txs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top