FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 10th, 2000, 01:42 PM
swalker swalker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 2 swalker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How do I FTP all of the files in a directory from one server to a directory on another server?

Reply With Quote
  #2  
Old October 11th, 2000, 02:46 AM
MeijdenB MeijdenB is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Alkmaar, The Netherlands
Posts: 123 MeijdenB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Do you want to do it with Perl or with a FTP program? And why do you post this question twice?

Reply With Quote
  #3  
Old October 11th, 2000, 10:34 AM
swalker swalker is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 2 swalker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by MeijdenB:
Do you want to do it with Perl or with a FTP program?
I want to do it with a perl program.

And why do you post this question twice? Just an itchy clicker finger, I guess. Sorry.
[/quote]


Reply With Quote
  #4  
Old October 11th, 2000, 06:49 PM
dwarf dwarf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 300 dwarf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Go to CPAN and download the Net::FTP module. Then read its docs, and then you will be set. If you wnat to get really "dangerous" then go and read the RFC for FTP, and learn something about sockets and read the documentation that comes with IO::Socekt module (bundled with Perl 5.004 and higher).

My reccomendation is to download the module...

Reply With Quote
  #5  
Old October 17th, 2000, 03:42 AM
r-c r-c is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 10 r-c User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 57 m 25 sec
Reputation Power: 0
Although you could write your own program, it would be much easier to use the "prox" command in ftp on unix/linux. You can also find some windows programs to do this but I can't remember any..

To use the prox command here is an example>

ftp> open <site 1> <port>
^ connect to site 1
ftp> prox open <site 2> <port>
^ connect to site 2
ftp> cd public_html
^ change to desired dir on site 1
ftp> prox cd public_html
^ ditton on site 2
ftp> prompt
^ diable prompting (depending on what your doing)
ftp> prox mget *.html
^ put all *.html files from site 1 to site 2

for more info just read the ftp man

or if it needs to be dynamic or something you could try using a Perl program to write a .netrc file or something similar that contains these commands
and then just call ftp from within perl.

Regards
Ravi


[This message has been edited by r-c (edited October 17, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > ftp

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap