Before your find you could check how many files exist in
the remote directory eg count1=`ls|wc -l`
and after the find do count2=`ls|wc -l`
then compare the 2 counts
DB
Dickie Bird
db@dickiebird.freeserve.co.uk
DB
That could work - my only problem is that as the files are from an external source I cant guarantee they will be unique, obvioulsy if a file is then overwritten the file count wouldnt go up
You can do radical surgery to your find command and rcp each file, and check the exit code. I think you'd lose efficiency doing this sort of thing, but ....
for file in `find . -type f -mtime -1 -print`
do
rcp $file $SITE:$REMDIR
if [ "$?" eq - ] ; then
.
.
done
You could clear the current directory first
(save all files to a sub-directory, perhaps )
and do the wc -l command afterwards ??????
DB
Dickie Bird
db@dickiebird.freeserve.co.uk
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.