Re: SSH to remote machines..

2010-10-21 Thread Shlomi Fish
On Thursday 21 October 2010 00:49:22 lakshman wrote: > > - Show quoted text - > > I tried your code but i'm getting this following error message. I > think I don't have the perl library module installed. Can you help me > how to make your script work. Can't locate Net/SSH/ > Perl.

Re: SSH to remote machines..

2010-10-21 Thread lakshman
> - Show quoted text - I tried your code but i'm getting this following error message. I think I don't have the perl library module installed. Can you help me how to make your script work. Can't locate Net/SSH/ Perl.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux- threa

Re: SSH to remote machines..

2010-10-20 Thread marcos rebelo
I usually use http://search.cpan.org/dist/Net-SSH-Perl/lib/Net/SSH/Perl.pm sample use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); my @instructions = ("ping this","run this","open this","rm this","mkdir some/dir") foreach $cmd (@instructions){ my($stdout,