Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!maui!tait From: tait@maui.UUCP (Tait Kirkham) Newsgroups: comp.unix.wizards Subject: HELP!!!--UNIX file locking. Message-ID: <18885@maui.UUCP> Date: 12 Jul 89 23:32:28 GMT Reply-To: tait@Maui.UUCP (Tait Kirkham) Distribution: comp.std.unix comp.unix.questions comp.unix.wizards Organization: Versatec, Santa Clara, Ca. Lines: 18 I have a problem which I cannot solve. I am trying to determine when/if a file is opened by another process. I have no control over the other process so I can't use "lockf". I cannot find any way to do this other than getting the inode number and then looking for that number in a "pstat -i" listing. My problem with this (besides the obvious) is that it won't work over NFS. Does anyone have any suggestions? I really need a solution which is system independant. Is this possible? I am currently using Sun 4.0.1 and Xenix. Any suggestions would be greatly appriciated. Thanks, Tait Kirkham -- {pyramid,sun,ames}!versatc!tait Tait Kirkham Versatec, 2805 Bowers Avenue, Santa Clara, Ca. 95051 (408)988-2800x5070