in reply to Re^2: Net:Telnet to Nortel Switch
in thread Net:Telnet to Nortel Switch
The ctrl example sub is equivalent to the \c built-in construct that you are using. I was under the impression that you didn't understand how control characters are generated from their respective symbol.
As for why your script doesn't work please be more specific. What doesn't work? Have you checked return values and error status after each step? Try to read the Net::Telnet documentation from beginning to end. I'm not familiar with the module but after a brief read I can suggest some starting points for investigation.
Quoting from the docs:
The login possibly times out because "Press Ctrl-Y to begin" doesn't match the default prompt. Also the login will probably stall if you disable password authentication on the switch. Use the docs!
|
|---|