Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: not able to reach to the prompt while using Net::Telnet

by vitoco (Friar)
on Dec 09, 2009 at 12:06 UTC ( #811904=note: print w/ replies, xml ) Need Help??


in reply to not able to reach to the prompt while using Net::Telnet

Try this:

$t->waitfor('/"Are you sure to continue\? \(Y\/N\)\? : "/');

UPDATE: Are quotes being displayed on a terminal session? If not, try:

$t->waitfor('/Are you sure to continue\? \(Y\/N\)\? : /');

Is any artifact in use like bold, blinking or colored text? Then, you must add some wildcards somewhere to match escape sequences.


Comment on Re: not able to reach to the prompt while using Net::Telnet
Select or Download Code
Re^2: not able to reach to the prompt while using Net::Telnet
by godsown (Novice) on Dec 09, 2009 at 13:28 UTC
    the actual message does not contain quotation marks.. but even wen i try without the quotations, it fails at the same line with same error: "pattern match timed-out"..

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-10-22 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls