[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Detecting open files


Delip Rao wrote:
> How do I detect a file already been opened by someother process?

Use fuser or lsof.
On debian boxes, fuser is bundled with the psmisc package and lsof is in a
package of its own.

If your are looking for some code, check the sources of the mentioned programs.

- Raja Supe