Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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.

Replies are listed 'Best First'.
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?
[stevieb]: use metamod::DateTime. Don't fsck around. Seriously. As someone who's done sensitive date/time stuff, don't roll your own. Use what is available and known stable. Do not guess.
[stevieb]: Date::Time even
[stevieb]: ffs I can't make DateTime link properly, so there.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2017-04-29 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.