Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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