Please note that, I don’t have any control over the target file. Some other process is writing that file. I just want to copy the file when other process completes the write operation.
I was wondering, how i can check the write operation on a file ?
Thanks !
Try
F_NOTIFYargument tofcntl.Or you can try inotify if you know that you have a Linux kernel >= 2.6.13. I found an article in Linux Journal which describes how to use it.