On 9/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
snip
> I modified the telnet script found at
> http://search.cpan.org/~rgiersig/Expect-1.21/Expect.pod#The_examples_...
> by replacing "Telnet" with "SSH".
>
>
> This is a perl script to automate ssh login with Expect.pm, I try to
> ssh to a computer and do "ls" (a simple command now, more commands
> later).  This script ssh to a computer successfully but then it exit
> without doing "ls".
> How to fix it?
snip

Perhaps you would be better served by Net::SSH::Expect

http://search.cpan.org/dist/Net-SSH-Expect/lib/Net/SSH/Expect.pod

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to