rcp the file

Hi
I am using rcp command to copy the file one linux to other linux machine

I need the ouput log for this

like 1 file coied
size of the file
date stamp

my copy comman is

rcp 10.100.11.2:/u01/pr/uni.txt /u05/ryd/uni.txt

once this script run

i need to capture the log file like this
------------------------------------
1 file copied
162 Mar 3 20:54 uni.txt
------------------------------------

I am copying multiple file so i need to append this log
the purpse of this log file is to track any error happend when copying

rds
aboor

I assume that you would be putting all the RCP commands in the script. Setup password-less rcp. To do this, you should have $HOME/.rhosts file defined on the target machine if you are trying to login as root.

once that is done, you can simply use rcp like below:

rcp 10.100.11.2:/u01/pr/uni.txt /u05/ryd/uni.txt >> /log.txt

hope this works for you. I have not tried this but i guess this should work

HI Kunal
I have no idea what this you should have $HOME/.rhosts
I dont have such a file in source system , i am not using root user for rcp
pls advise how to get this log

rds

Hi
Any idea how i can do this
rds