Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Expect::Simple help

by BMaximus (Chaplain)
on Dec 02, 2005 at 17:50 UTC ( #513667=note: print w/replies, xml ) Need Help??


in reply to Expect::Simple help

My guess is that its failing to find the prompt you're asking it to find. Seems like the module is very specific as to how it finds those prompts so it can send commands. Take a look at the prompt you want the module to find and see if it has a ":" at the end or a new line (carrage return?) and then the ":" asking for the password.

I've never used Expect::Simple so I'm not sure if I'm right or not. It's a WAG at best. Hope it helps.

BMaximus

Replies are listed 'Best First'.
Re^2: Expect::Simple help
by sunadmn (Curate) on Dec 02, 2005 at 18:32 UTC
    Well this is what my telnet session actually returns for the prompt:
    Trying my.ip.address... Connected to myhost.net. Escape character is '^]'. Enter password:
    SUNADMN
    USE PERL

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2021-04-17 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?