The UNIX and Linux Forums  

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


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
file attributes and exception krem UNIX Desktop for Dummies Questions & Answers 1 09-03-2006 05:45 PM
Assigning file attributes to variables olimiles Shell Programming and Scripting 5 08-18-2006 06:31 AM
file attributes Hitori Shell Programming and Scripting 1 07-12-2006 12:12 PM
file attributes hytechpro Shell Programming and Scripting 2 09-16-2005 06:32 AM
Need to view all the attributes for a file/node dpalmer UNIX for Advanced & Expert Users 2 10-02-2001 08:10 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 05-26-2005
Registered User
 

Join Date: May 2005
Posts: 80
rcp and file attributes

Good day
Does anyone have an idea on how I can rcp a file together with its attributes. owner,group, permissions ?

Regards

J
Reply With Quote
Forum Sponsor
  #2  
Old 05-26-2005
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
rcp -p should do the job. Check the manual - it says

Quote:
-p The -p option causes rcp to attempt to preserve (duplicate) in its
copies the modification times and modes of the source files, ignor-
ing the umask. By default, the mode and owner of file2 are pre-
served if it already existed; otherwise the mode of the source file
modified by the umask(2) on the destination host is used.
Reply With Quote
  #3  
Old 05-26-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 629
rcp -p localfile remotehost:/remdir/remfile
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0