Solved

FTP

Posted on 1998-06-12
6
465 Views
Last Modified: 2010-04-21
How can I copy file from one FTP server to another FTP server ?

Andrew
0
Comment
Question by:andrewyu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 2

Accepted Solution

by:
stam061398 earned 30 total points
ID: 2007973
First, you can use the ftp protocol.
Second, it depends what your OS is.
i.e. if the both of them are UNIX-es, you can use simple tcp/ip protocols like rcp, rsh, etc.
If it is other OSes then the solution will look the same depends on what is it.

0
 

Author Comment

by:andrewyu
ID: 2007974
Can you give me some samples ?
0
 
LVL 2

Expert Comment

by:stam061398
ID: 2007975
i.e. between two unixes :

1. rcp -p <source_host>:/<filename> <dest_host>:/<where_to_put>
2. (cd <source_dir>;tar cvf - .) | rsh <dest_host> "(cd <dest_dir>; tar xvf -)"

between to NT-s :

copy <source_file> \\<dest_comp>\<share-name>\<sub-dir>

These are the most simple ways to copy files between two systems.


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:andrewyu
ID: 2007976
But, if I want to write a program on Windows which can transfer a file from a FTP to another as both are on UNIX, how can I achieve that issue ?

Anyway, thank you very mcuh !

Andrew
0
 
LVL 2

Expert Comment

by:stam061398
ID: 2007977
What about writing a little utility that takes the file from the source to the Windows station (into temporary location), and after that, put it on the destination, all with the ftp commands.

0
 

Author Comment

by:andrewyu
ID: 2007978
NO.

I want to copy from one FTP to another FTP directly !

Andrew
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question