Solved

Unix dat file copy

Posted on 2013-11-05
5
549 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
  • 2
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

773 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