Similar to doing an lsof. I want to tell if a file is done copying before I process it. The copying is external to the script. I originally checked the mod time, waited an interval, then checked the time again. A colleague pointed out that there could be a network outage, so the interval wouldnt be enough to detect if it finished. Of course he didnt know how to do it, but its a valid point. I cannot find a method in the standard library to do this. Any suggestions?
And C programmers, how would you do it in C?
And C programmers, how would you do it in C?