Unix dat file copy

How to ftp cache dat files from unix to unix on the same network?
lsbrown1Asked:
Who is Participating?
 
omarfaridCommented:
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
 
lsbrown1Author Commented:
omarfarid, this does not woek with .DAT files.
0
 
omarfaridCommented:
I could not understand what you mean by "this does not woek with .DAT files"
0
 
gheistCommented:
are those files open (as seen by lsof)?
in that case you need to close them before transferring....
0
 
lsbrown1Author Commented:
I added tar and it worked
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.