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