Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!PAN.SSEC.HONEYWELL.COM!thompson From: thompson@PAN.SSEC.HONEYWELL.COM (John Thompson) Newsgroups: comp.sys.apollo Subject: re: detecting locked objects Message-ID: <9106241611.AA16273@pan.ssec.honeywell.com> Date: 24 Jun 91 16:11:10 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The Internet Lines: 31 > Is there any way to determine if a file is locked other than llkob. > I am trying to write a script that can tell if the file about to be > opened is already being used by someone else. Without such a check, the > process just bombs. > > I know how to use llkob, but it can't check for locked objects on > any node other than the node it is called from. I know that I could > crp onto the node I'm interested in, but I'm afraid that might slow things > down too much. Try using 'llkr' in the /systest/ssr_util directory. Note that it is _NOT_ a supported program, so you can't count on it (though it's been around for a looonnnggg time). Also note that the format is more verbose. I can't say for sure, but I think it doesn't always get the locking person/process correct either. Example: frodo> llkr //merry/local_user/joe_u/com/wait Locked by "Joe Username @ //arwen" - joe_u.group.org Locking modes on //merry/local_user/joe_u/com/wait : FILE_$NR_XOR_1W FILE_$EXECUTE -- jt -- John Thompson Honeywell, SSEC Plymouth, MN 55441 thompson@pan.ssec.honeywell.com Avoid the rush -- Procrastinate Now!