How to up file with SFTP protocol using Windows Activestate perl?

G

Guest

How to use SFTP protocol with Activestate perl?

Please help me



__________ ESET Smart Security informacija, verzija baze podataka virusnih potpisa 5244 (20100701) __________

poruka je provjerena programom ESET Smart Security.

http://www.eset.com.hr
 
J

J. Gleixner

How to use SFTP protocol with Activestate perl?

Please help me

You can help yourself and greatly cut down the time it takes
for you to possibly find a solution, by first trying to find
the information on your own.

Put "perl sftp" into your favorite search engine and you should find
many helpful pages.

Oh look.. the very first result from the search is for:

http://search.cpan.org/~dbrobins/Net-SFTP-0.10/lib/Net/SFTP.pm

which looks pretty useful.
 
T

Trta

Unfortunately don't work.


Perl Code:
-------------------------------------------------
#!/usr/bin/perl -w
use strict;
use warnings;
use Net::SFTP;
my $server="xxx.com";
my $user="user";
my $password="password";
my %args = (user => "$user", password => "$password", ssh_args => [port =>
22]);
my $file="TEST.CSV";
my $sftp=Net::SFTP->new($server, %args);
$sftp->put($file);
exit;
-------------------------------------------------
Message is:
The getpwuid function is unimplemented at C:/Perl/site/lib/Net/SSH/Perl.pm
line 110.



Sherm Pendley said:
On the other paw, if you're trying that module and having problems
with it, you should say so and describe the problems.

sherm--

--
Sherm Pendley <www.shermpendley.com>
<www.camelbones.org>
Cocoa Developer

__________ Information from ESET Smart Security, version of virus
signature database 5246 (20100702) __________

The message was checked by ESET Smart Security.

http://www.eset.com



__________ Information from ESET Smart Security, version of virus signature database 5266 (20100709) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top