how to ftp to remote server and download files and then log out using PERL?

S

sir.linying

Is there a way to write PERL code so that it can automate the procedure
of logging into my account on remote server using ftp, get the file,
and then log out the account?

Thanks a lot for any possible help!

Andy
 
J

J¨¹rgen Exner

Is there a way to write PERL code so that it can automate the
procedure of logging into my account on remote server using ftp, get
the file, and then log out the account?

And you didn't find anything suitable among the Net::FTP modules?

jue
 
G

goomania

I forgot to point out that the server I tried to ftp to only accept
secure connection, therefore I need to use sftp program. However,
Net::FTP modules don't appear to provide such capability for secure
connection.

Are there any other perl modules that work with sftp?

Thanks a lot for help!

Andy
 
B

Brian Wakem

goomania said:
I forgot to point out that the server I tried to ftp to only accept
secure connection, therefore I need to use sftp program. However,
Net::FTP modules don't appear to provide such capability for secure
connection.

Are there any other perl modules that work with sftp?

Thanks a lot for help!

Andy



er, Net::SFTP perhaps?
 
G

goomania

I guessed so too. But I found that Net::SFTP doesn't exist, at least
for the standard release for perl v5.8.6 installed on my system.

Andy
 
J

Jürgen Exner

goomania said:
I guessed so too.

What did you guess, too? Please quote an appropriate amount of text -as has
been customary for the last 25 years- such that people have a chance to know
what you are talking about.

jue
 
G

goomania

Sorry for being not clear. What I tried to say is that I guessed
(inspired by Brian Wakem's post) that there probably exists some module
called Net::SFTP which performs just like NET::FTP. Therefore, I looked
up the documentations that come with the version of PERL I am using;
however, Net::SFTP doesn't exists. Any clues about where to get
Net::SFTP, if it exists?

Thanks a lot for help!

Andy
 
B

Brian Wakem

goomania said:
Sorry for being not clear. What I tried to say is that I guessed
(inspired by Brian Wakem's post) that there probably exists some module
called Net::SFTP which performs just like NET::FTP. Therefore, I looked
up the documentations that come with the version of PERL I am using;
however, Net::SFTP doesn't exists. Any clues about where to get
Net::SFTP, if it exists?

Thanks a lot for help!

Andy


You can get it from http://search.cpan.org/~dbrobins/Net-SFTP-0.09/

But you should probably install in using perl -MCPAN -e 'shell' or ppm,
depending on your OS.

Please read about how to construct a usenet article, quoting in particular.
 
J

Jürgen Exner

goomania said:
Sorry for being not clear. What I tried to say is that I guessed
(inspired by Brian Wakem's post) that there probably exists some
module called Net::SFTP which performs just like NET::FTP. Therefore,
I looked up the documentations that come with the version of PERL I
am using; however, Net::SFTP doesn't exists.
Really?

Any clues about where to
get Net::SFTP, if it exists?

Apparently you didn't check CPAN.
A simple search for module Net::SFTP returns some 1000+ hits and the very
first one is

Net::SFTP
Secure File Transfer Protocol client

jue
 

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,053
Latest member
BrodieSola

Latest Threads

Top