Path: utzoo!attcan!uunet!husc6!bbn!rochester!cornell!uw-beaver!tikal!sigma!uw-nsr!korry From: korry@uw-nsr.UUCP (Korry A. Douglas) Newsgroups: comp.os.vms Subject: Re: Detecting file creation Summary: Try an Alarm ACE Message-ID: <1318@uw-nsr.UUCP> Date: 12 May 88 04:16:14 GMT References: <272@sdrc.UUCP> <2944@crash.cts.com> Reply-To: korry@uw-nsr.UUCP (Korry Douglas (206) 246-7022) Organization: UW-Bioengineering, Seattle, WA Lines: 27 In article <2944@crash.cts.com> jeh@crash.CTS.COM (Jamie Hanrahan) writes: > >(Larry Jones wants to be notified when someone creates a file in a >particular directory.) > >I don't have The Answer, but I might have a Clue. When the XQP wants to >create a file it takes out a lock so that it can write on the directory >in question. This lock has a name which is derived in a reproducible way. >It seems to me that if you take out a lock on the directory you should >be able to coerce the lock manager into telling you when someone else >(the XQP) wants the lock. You then release it, wait a reasonable time, >and check the directory for a file to work on. > The VMS Security Services Package may help here. ( Not sure, never tried it ) Section 3.4.1.1 of the VMS System Services Manual mentions an Alarm ACE (Access Control List). Supposedly, this ACE will send a security alarm to the console terminal whenever the security is "violated." "Violated" can be described as READ, WRITE, EXECUTE, DELETE, or CONTROL. I would bet that if you assigned an Alarm ACE to the directory you want to watch (say LARRY.DIR) that you would get a message on the console whenever anyone "violates" the security. Note that the Alarm ACE will not prevent the access, just note it. I believe that there is also a DCL command that will make your terminal a console terminal, but I don't have the full VMS Doc. set at home (don't have the room!) Korry Douglas