Is there an easy way (using bash scripting) to detect when write operations to a file has been completed and/or when no other process is accessing the file? The reason for this is that I want to move the file to another folder only when the write operation is over.
I'm a newbie with shell programming, the best I could come up with is using md5sum to compare the result at different intervals. There must be an easier way...
[link][4 comments]