Re: perl expect script to login to multiple machines

2010-01-05 Thread perl_haxor 123
tried using Net::SSH2 and Net::SSH::Perl and it didn't work for me so i had to use expect. Thanks On Tue, Jan 5, 2010 at 8:30 PM, Salvador Fandino wrote: > perl_haxor 123 wrote: > >> Hi All, >> >> I'm new to perl and facing a problem.... I'm

Re: perl expect script to login to multiple machines

2010-01-05 Thread Salvador Fandino
perl_haxor 123 wrote: Hi All, I'm new to perl and facing a problem I'm using a perl expect script to login to multiple machines (having same username and password) and execute the date command, initially i tested on one machine, it worked fine...but wh

Re: perl expect script to login to multiple machines

2010-01-04 Thread C.DeRykus
On Jan 3, 1:56 pm, perl.ha...@gmail.com (Perl_haxor 123) wrote: > Hi All, > >            I'm new to perl and facing a problem.... I'm using a perl > expect script to login to multiple machines (having same username and > password) and execute the date command, initiall

Re: perl expect script to login to multiple machines

2010-01-03 Thread Alvaro Mantilla Gimenez
On Mon, 2010-01-04 at 02:38 +0100, Jeremiah Foster wrote: > On Jan 4, 2010, at 24:15, Alvaro Mantilla Gimenez wrote: > > > Hello, > > > > I know this is a Perl question but is not more easier to log in with > > ssh public key method and execute the commands inside the foreach and > > don't do al

Re: perl expect script to login to multiple machines

2010-01-03 Thread Jeremiah Foster
On Jan 4, 2010, at 24:15, Alvaro Mantilla Gimenez wrote: > Hello, > > I know this is a Perl question but is not more easier to log in with > ssh public key method and execute the commands inside the foreach and > don't do all the username/password code? Sometimes - like when you have a cluster

Re: perl expect script to login to multiple machines

2010-01-03 Thread Alvaro Mantilla Gimenez
; Hi All, > >I'm new to perl and facing a problem.... I'm using a perl > expect script to login to multiple machines (having same username and > password) and execute the date command, initially i tested on one machine, > it worked fine...but when i use a foreach loo

perl expect script to login to multiple machines

2010-01-03 Thread perl_haxor 123
Hi All, I'm new to perl and facing a problem I'm using a perl expect script to login to multiple machines (having same username and password) and execute the date command, initially i tested on one machine, it worked fine...but when i use a foreach loop to tes