This content has been marked as final. Show 3 replies
Just an observation: is it not somewhat normal for the output file of a cp command to not exist before the copy takes place?
Using truss is probably the easiest way to go about it:
truss -t open,stat64,xstat cp ...
It's very well suited for this particular purpose.
I suppose that cp will check if the target exists before copying a file..
If you run
cp source destination
it will probably do 'stat' on 'destination', to ensure that the file doesn't exists before attempting the actually copy..