FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #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: 8
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: 8
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
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Auckland, New Zealand
Posts: 9 r-c User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to r-c
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


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway