SSH to remote machines..

2010-10-19 Thread Bob Null
Hello Folks, I want to create a chuck of code that will take a list of instructions (things one would type at a shell) and have them run one by one until complete, then gracefully log out. Anyone have any suggestions? I would like something that looks similar to this: my @instructions = ("ping th

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,

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-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.

Fwd: SSH to remote machines.. 6D7-36A

2010-10-20 Thread marcos rebelo
Can someone take of the SPAM Assin??? -- Forwarded message -- From: marcos rebelo Date: Wed, Oct 20, 2010 at 12:34 PM Subject: Re: SSH to remote machines.. To: Bob Null Cc: beginners@perl.org I usually use http://search.cpan.org/dist/Net-SSH-Perl/lib/Net/SSH/Perl.pm sample