If both directories are in the same file system only the inode table is updated, the file does not actually move
---------- Post updated at 12:01 PM ---------- Previous update was at 11:54 AM ----------
Quote:
However, I have a feeling that this "other program" is grabbing this file too soon as the "mv" hasn't successfully completed writing the files contents; perhaps just the filename.
If the two directories involved in the mv are on different file systems, the a copy and delete is done
However, unix systems will show the file in a ls as soon as it is opened for writing, so your second program should confirm that the file is not in use (use fuser), otherwise you may process a partial file.