Net:SSH2 v/s Expect

2014-12-01 Thread Priyal Jain
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 2. Expect : http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod What are the advantages of using Net::SSH2 over Expect??

Re: Net:SSH2 v/s Expect

2014-12-01 Thread Shlomi Fish
Hi Priyal, On Mon, 1 Dec 2014 09:29:44 + Priyal Jain jpri...@juniper.net wrote: 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 2. Expect :

Re: Net:SSH2 v/s Expect

2014-12-01 Thread Priyal Jain
Thanks, and on the basis of performance like speed and robustness which is better?? Regards Priyal On 12/1/14, 5:25 PM, Shlomi Fish shlo...@shlomifish.org wrote: Hi Priyal, On Mon, 1 Dec 2014 09:29:44 + Priyal Jain jpri...@juniper.net wrote: Hi, For establishing ssh session between

Re: Net:SSH2 v/s Expect

2014-12-01 Thread Nathan Hilterbrand
On 12/01/2014 04:29 AM, Priyal Jain wrote: 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 :

Re: Net:SSH2 v/s Expect

2014-12-01 Thread shawn wilson
On Dec 1, 2014 7:02 AM, Priyal Jain jpri...@juniper.net wrote: Thanks, and on the basis of performance like speed and robustness which is better?? So I've never had the need for either - run local or remote or managed (puppet/chef or the perl solution I can't think off hand). And for

Re: Net:SSH2 v/s Expect

2014-12-01 Thread Octavian Rasnita
From: Priyal Jain 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 2. Expect : http://search.cpan.org/~rgiersig/Expect-1.15/Expect.pod What are the advantages of

Re: Net:SSH2 v/s Expect

2014-12-01 Thread Priyal Jain
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.netmailto:edua...@eduardors.net Date: Tuesday, December 2, 2014 at 4:37 AM To: Priyal Jain jpri...@juniper.netmailto:jpri...@juniper.net