On Wed, Aug 13, 2008 at 8:14 AM, Thomas Lovell
<[EMAIL PROTECTED]>wrote:

>
> On Aug 13, 2008, at 4:25 AM, Irfan J Sayed (isayed) wrote:
>
>  Hi All,
>>
>> I want to execute one command on remote Linux machine.
>>
>> Following is the perl code.
>>
>> #! /usr/bin/perl;
>>
>> # perl module to parse the Install.log file for errors
>>
>> use lib "/tmp/";
>> use Net::SSH::Perl;
>>   my $ssh = Net::SSH::Perl->new(avm-qa-cam2.net.com);
>>   $ssh->login(cgadgil, cgadgil);
>>   my($stdout, $stderr, $exit) = $ssh->cmd(ls);
>>
>> Actually i want to parse the log file for errors which is on the remote
>> machine. so i want to execute some commands on remote machine. for
>> example ls
>> I have copied the Perl.pm in the /tmp folder but still i am getting @INC
>> error.
>> Can't locate Net/SSH/Perl.pm in @INC (@INC contains: /tmp/
>> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
>> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
>>
>> Please suggest.
>>
>> Regards
>> Irfan.
>>
>>
>>
>>
> Irfan, did you copy Perl.pm to /tmp or to /tmp/Net/SSH?
> The ::'s equate to a directory hierarchy...
>
> tom
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
>
>
>
http://rodrickbrown.com/blog/?p=106 I Wrote a post a while back about
installing perl modules as a non root user.


-- 
[ Rodrick R. Brown ]
http://www.rodrickbrown.com http://www.linkedin.com/in/rodrickbrown

Reply via email to