in reply to Re: Telnet to Cisco command prompt...
in thread Telnet to Cisco command prompt...

I would like to create a "goto" script. I want to have the script leace me at the Cisco's command prompt. The script I have listed above logs me out when it completes. Rather than going through the user, pwd, en, pwd routine each time, I want to be able to execute the script and have it leave me in the enable mode. Thanks for any help! Charlie

Replies are listed 'Best First'.
Re^2: Telnet to Cisco command prompt...
by Illuminatus (Curate) on Sep 25, 2008 at 16:08 UTC
    Sorry, you can't do that this way. The best you could do using this approach is to essentially write your own pass-through code after your login. It would read your info from stdin, package it as commands, use the perl interface to execute it and display the results.