in reply to overwrite a file

Your problems are probably due to file permissions or something else having a lock on the file.

If you can't copy over it, then you could check for locks, sleep, and retry for a while. If you don't know or have control over the files that you're copying over, you may want to check permissions on the files first and process accordingly.

Replies are listed 'Best First'.
Re^2: overwrite a file
by Anonymous Monk on Apr 01, 2005 at 23:04 UTC
    Thank you all for your responses.

    I am trying to use File::Copy command...you are probably right...I might not have permissions to change the file. If I don't have permission to change the file, I might not be able to overwrite. I'll go ahead and implement changing the permissions for the files.

    Thanks.