Thanks.
Is Net::SSH2::Expect a stable module I want to use it for Net::Netconf. Is it 
supported in windows?


Regards
Priyal


From: Eduardo <edua...@eduardors.net<mailto:edua...@eduardors.net>>
Date: Tuesday, December 2, 2014 at 4:37 AM
To: Priyal Jain <jpri...@juniper.net<mailto:jpri...@juniper.net>>
Subject: Re: Net:SSH2 v/s Expect

El 01/12/14 a las #4, Priyal Jain escribió:
Hi,

Hi


For establishing ssh session between client and server, which is better method:
 1. Net::SSH2 :  
http://search.cpan.org/~rkitover/Net-SSH2-0.53/lib/Net/SSH2.pm<http://search.cpan.org/%7Erkitover/Net-SSH2-0.53/lib/Net/SSH2.pm>
 2. Expect : 
http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod<http://search.cpan.org/%7Ergiersig/Expect-1.15/Expect.pod>

What are the advantages of using Net::SSH2 over Expect??

IMHO I think ssh2 is the bestoption, it is the closest to the protocol. You can 
open any channel that you need into anopen connection,either shell, ftp, 
scp.Perhaps his biggest drawbackis a slow network ornodes. And in more than one 
occasion expect is needed to handle an application.Net :: SSH2 ::Expect is a 
clearly improvedoption.

With Expect you are really a user who manages theinput and standard output.


Thanks
Regards
Priyal

sorry aboutmy english

--
Eduardo

Reply via email to