The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-30-2009
kumarm kumarm is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 7
File transfer using SCP

I have a shell script which uses SCP command to transfer the files from one server to another server. The files are getting transferred successfully, but the problem is the files transferred to the destination server didnot have the permissions as that of the files on the source server.

Command used: scp file_name username@servername:/dest_directory/

Files permissions on Source server : -rw-r--r--
Files permissions on Destn server : -rw-------

I cannot use "scp -p" or any other variations since there are 40 shell scripts already running daily in the production server(source server)

Please help me to resolve the issue.

Last edited by kumarm; 06-30-2009 at 02:19 PM..