Solved

Unix dat file copy

Posted on 2013-11-05
5
556 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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 …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.

733 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