?
Solved

Unix dat file copy

Posted on 2013-11-05
5
Medium Priority
?
567 Views
Last Modified: 2013-12-03
How to ftp cache dat files from unix to unix on the same network?
0
Comment
Question by:lsbrown1
[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
  • 2
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 1500 total points
ID: 39626292
you can simply use ftp command

ftp servername (or ip address)

once you connect to the other server via ftp command, you need to provide username and password, then you see the ftp prompt.

Then you use command

binary (if the file is not text file)

then you change to target dir on the remote server:

cd /path/to/my/dir

then you send the file with

put filename

then you exit with

bye

Please see link below for ftp command

http://unixhelp.ed.ac.uk/CGI/man-cgi?ftp

You could alternatively use the sftp command, which is secure to transfer files, etc.

This would require ssh/sftp to be installed on both systems.

Please see

http://unixhelp.ed.ac.uk/CGI/man-cgi?sftp
0
 

Author Comment

by:lsbrown1
ID: 39629224
omarfarid, this does not woek with .DAT files.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 39629243
I could not understand what you mean by "this does not woek with .DAT files"
0
 
LVL 62

Expert Comment

by:gheist
ID: 39645152
are those files open (as seen by lsof)?
in that case you need to close them before transferring....
0
 

Author Comment

by:lsbrown1
ID: 39694358
I added tar and it worked
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

743 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