The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-20-2008
nua7 nua7 is offline
Registered User
 

Join Date: Mar 2008
Location: /bin/sh
Posts: 338
This is the general syntax for scp:

scp [options] [[user@]host1:]filename1 ... [[user@]host2:]filename2

In your case , the command should be something like:

scp -p [[root@]host1:]/$CUSTCARE_HOME/$CUSTCARE_LOG.* [[root@]host2:]*


I guess you have a option in SCP which would delete the files from the original location, once they are copied to the desired location.

Please check man pages for scp for more details.
Reply With Quote