Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!ucbvax!DGOGWDG5.BITNET!U0012 From: U0012@DGOGWDG5.BITNET ("GWDGV1::MOELLER") Newsgroups: comp.os.vms Subject: detecting "locked" files Message-ID: <8805161403.AA16091@ucbvax.Berkeley.EDU> Date: 13 May 88 21:25:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 18 > ... Chris Tenaglia asked ... >Does anyone have a spiffy technique in DCL to check whether a file is >locked by another user or not? ... What I have done so far in order to detect files open for writing (I think the question aims at that) is $ open/append/error=file_open dummy $ close dummy $file_not_open: ... $file_open: I don't think this is a general solution, but for me it worked. I'd love to have the information from $ SHOW DEVICE/FILES on open files available in a form other than a listing file. Any ideas? Wolfgang J. Moeller, GWDG, D-3400 Goettingen, F.R.Germany | Disclaimer ... Bitnet/Earn: U0012@DGOGWDG5 Phone: +49 551 201516 | No claim intended