How in Perl can you tell if a file is opened by another process? i.e. I'm looking for something similar to the unix "fuser" command.
I tried working with "flock" but it only works if the other process has explicitly acquired a lock on the file. If the other process has not then "flock" fails to detect it.
My preference is to not make a system call to "fuser" from Perl.
Thanks,
David
I tried working with "flock" but it only works if the other process has explicitly acquired a lock on the file. If the other process has not then "flock" fails to detect it.
My preference is to not make a system call to "fuser" from Perl.
Thanks,
David