Solved

FTP

Posted on 1998-06-12
6
440 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
  • 3
  • 3
6 Comments
 
LVL 2

Accepted Solution

by:
stam061398 earned 30 total points
Comment Utility
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
Comment Utility
Can you give me some samples ?
0
 
LVL 2

Expert Comment

by:stam061398
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:andrewyu
Comment Utility
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
Comment Utility
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
Comment Utility
NO.

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

Andrew
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how do I change a ip address on a unix box 13 37
AIX print queues constantly going down 11 453
AIX  NFS  question 5 89
Oracle Finace 3 43
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now