[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cp command
From: |
Patrick J Clas |
Subject: |
Re: cp command |
Date: |
Tue, 19 Jul 2005 16:42:33 -0400 |
No, but I did try --preserve=timstamps which I would assume has the same
result. And that says that it preserves the listed attributes if
possible, which would imply to me that it wouldn't return a failure if it
wasn't possible.
Patrick J. Clas - Software Engineer - zSeries
IBM, Endicott
Phone: (607) 429-4425 T/L 620-4425
Office: 256-3 X007
Jim Meyering <address@hidden>
07/19/2005 04:24 PM
To
Patrick J Clas/Endicott/address@hidden
cc
address@hidden
Subject
Re: cp command
Patrick J Clas <address@hidden> wrote:
> the timestamps of files with the -p flag. The script I'm running copies
> many files and some of them have permissions that prevent the preserve
> from working. The problem is that cp returns 1 for this failure and I
> fail even though it's an acceptable condition. I guess I'd like to see
cp
> return a different return code so I didn't have to parse the string
output
> of the command, or perhaps an additional flag that says we don't care if
> the preserve fails. I do care about severe errors like the copy failing
> completely, but if the preserve fails, the copy still could've
succeeded.
Have you tried options like --no-preserve=ownership
or --no-preserve=mode ?
Re: cp command, Philip Rowlands, 2005/07/19