Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: problem in connecting remote host

by perladdict (Chaplain)
on Dec 07, 2006 at 15:33 UTC ( #588363=note: print w/ replies, xml ) Need Help??


in reply to problem in connecting remote host

define the prompt as
$prompt = 'bash-2.03\#
print $prompt;
it will prints the exact prompt which u want to match in that variable
one more error u have to correct by giving space after '/login: $/i'
as well as '/paswd: $/',after these changes script will works fine


Comment on Re: problem in connecting remote host

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-07-28 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (190 votes), past polls