in reply to Re: Telnet to a switch
in thread Telnet to a switch
"kcott, tnx for reply i thing you are write. ... And what are the other options for the prompt.."
I've never used Net::Telnet, so I've had to do what you need to do, i.e. Read The Fine Manual.
At the very least, search for prompt. You'll find all sorts of information, including default value, hints, tips and gotchas.
The author of Net::Telnet appears to have gone to a fair amount of effort to provide the necessary information. However, there does seem to be some expectation regarding a basic knowledge of Perl's regular expressions: if you don't have that, I suggest reading "perlretut - Perl regular expressions tutorial".
"... im new to perl and still learning, and i think this is a noob question so dont judge me :) ..."
I am not judging you. I never judge someone on the basis of not knowing some particular piece of information: we start off life knowing nothing and we all learn different things. Until a few hours ago, I didn't know this information either.
Having said that, I note your last question, "Telnet Cisco routers", involved using Net::Telnet::Cisco. The first and third sentences in that documentation are:
"Net::Telnet::Cisco provides additional functionality to Net::Telnet for dealing with Cisco routers."
...
"Before you use Net::Telnet::Cisco, you should have a good understanding of Net::Telnet, so read it's documentation first, and then come back here to see the improvements."
So, perhaps this is something you should have known about.
Finally, I'm not trying to put you off from posting here. We're happy to help but we do expect you to show some effort yourself: asking for information that's clearly documented does not indicate any such effort. This is all explained in more detail in "How do I post a question effectively?".
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Telnet to a switch
by IvanAK (Acolyte) on Sep 08, 2013 at 11:20 UTC |