Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: regular expression matching in expect

by aitap (Deacon)
on Aug 10, 2012 at 07:26 UTC ( #986680=note: print w/replies, xml ) Need Help??


in reply to Re^4: regular expression matching in expect
in thread regular expression matching in expect

I did try using exp_continue; statement after every send but that didnt seem to help either.
Did you try returning it?

what advantage will Net::ssh offer that Use Expect doesnt?
More clean Perl code? You will need only to do things in ssh instead of running ssh manually and agreeing with it.

Sorry if my advice was wrong.
  • Comment on Re^5: regular expression matching in expect

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986680]
help
Chatterbox?
[Discipulus]: now i must come back to my house/hoven monks: dont do interesting discussion in my absence!
[erix]: or apparently, now it does :)
[GotToBTru]: heh
erix prods ambrus to (re-)start cbstream...
[GotToBTru]: I've got a program with an if ... or ... statement with 80 clauses
[stevieb]: 80 clauses? dispatch table?
[GotToBTru]: no, lookup
[stevieb]: no, I mean have you considered using a dispatch table. an 80 condition if/else is huge :)
[GotToBTru]: that is how this should have been done, no question

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-06-22 13:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (519 votes). Check out past polls.