in reply to Re^2: Not able to use Net::SFTP module.
in thread Not able to use Net::SFTP module.
marto is asking how did u install those modules ? Did you install them by downloading tar.gz or installed through cpan command ?
If you have installed with tar.gz file it could have showed you the path where this module get installed. If the module is not installed in the shared lib path, you need to add that path into @INC variable as,
#! usr/bin/perl BEGIN { unshift(@INC,"/path/where/installed/"); } use strict; use warnings; use Net::SFTP; use Net::SSH::Perl::Buffer; my $host = "*************"; my $userid = "****"; my $pwd = "******"; my $f = Net::SFTP->new($host) or die "couldn't connect"; $f->login($userid, $pwd) or die "couldn't login"; print "successfully logged in\n";
If you are not sure where it get installed find it with the find command.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Not able to use Net::SFTP module.
by Anonymous Monk on Apr 29, 2014 at 17:02 UTC | |
by vinoth.ree (Monsignor) on Apr 30, 2014 at 05:27 UTC | |
by marto (Cardinal) on May 07, 2014 at 08:05 UTC | |
by Ankur_kuls (Sexton) on May 01, 2014 at 04:33 UTC | |
by vinoth.ree (Monsignor) on May 01, 2014 at 17:55 UTC | |
by marto (Cardinal) on May 07, 2014 at 08:07 UTC | |
by Ankur_kuls (Sexton) on May 07, 2014 at 06:08 UTC | |
| |
by Ankur_kuls (Sexton) on May 01, 2014 at 04:58 UTC |