Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: perl expect prompt

by TheoPetersen (Priest)
on Jun 27, 2001 at 00:37 UTC ( #91746=note: print w/ replies, xml ) Need Help??


in reply to perl expect prompt

Given that it appears you are logging in via SSH anyway, can you use Net::SSH::Perl instead of using Expect directly? It handles command execution on its own; maybe it is clever enough to work around what ever is causing your prompt problem.

In any event, it would clear out the login and command management code from your script.


Comment on Re: perl expect prompt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2014-12-22 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls