Thread

Posted on Fri Jul 13 19:31:17 2007 by semireg
Using Expect.pm with Net-SSH-Perl
Does anyone know a way to integrate Net-SSH-Perl with Expect.pm?

Net-SSH-Perl can only execute commands via $ssh->cmd, whereas, Expect.pm only works with an external command:

my $exp = Expect->spawn($command, @params)

or a file handle:

my $exp = Expect->exp_init(\*FILEHANDLE);

Thoughts on how to bridge this gap?
Direct Responses: 5728 | Write a response
Posted on Mon Jul 16 12:27:17 2007 by yunshu in response to 5715
Re: Using Expect.pm with Net-SSH-Perl
This is a good idea!I'd like to see the answer. Becasue I got a problem http://www.cpanforum.com/posts/5727
Direct Responses: 6672 | Write a response
Posted on Wed Dec 12 09:08:47 2007 by udk in response to 5728
Re: Using Expect.pm with Net-SSH-Perl
hi, can you tell me if there was any progress ?
Write a response