<p><a href="http://superuser.com/q/583157/151431">This question</a> was closed as off topic but it is perfectly valid and on topic. The OP was not very clear and at first glance it might look like a programming issue (I imagine that is why it was closed) but it is not. It is simply about how one can find out which process is accessing a particular file on Linux. It has also been answered quite correctly (<code>lsof</code>).</p>

<p>I can understand if the question was closed because it was <a href="http://unix.stackexchange.com/q/72517/22222">cross-posted</a> on U&amp;L but in that case, it should be closed for the correct reasons and a comment explaining why cross posting is <a href="http://meta.stackexchange.com/q/64068/203101">frowned upon</a> added.</p>