Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Regular expressions in shell prompts

by shmem (Chancellor)
on Feb 12, 2018 at 14:25 UTC ( [id://1209001]=note: print w/replies, xml ) Need Help??


in reply to Regular expressions in shell prompts

The argument for prompt in the constructor of Net::Telnet in fact is a regular expression. So the task at hand here is to craft a valid regular expression for all 900 routers. If you are having problems with that, feel free to ask.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-25 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found