Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Regular expressions in shell prompts

by Corion (Patriarch)
on Feb 12, 2018 at 14:11 UTC ( [id://1208997]=note: print w/replies, xml ) Need Help??


in reply to Regular expressions in shell prompts

Yes. Net::Telnet supports regular expressions for detecting the prompt. The example in the SYNOPSIS section already shows how to use a regular expression.

The first step I would do is issue a mandate to change all (login) prompts on all routers to a single, identical scheme so that your script becomes simpler to maintain. That way any prompt that does not fit your scheme becomes the problem of the person buying/installing it and not yours.

  • Comment on Re: Regular expressions in shell prompts

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-18 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found