From: SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 3-SEP-1993 08:43:44.48 To: EVERHART CC: Subj: Re: Log file protection From: jan@gaspra.neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen) X-Newsgroups: comp.os.vms Subject: Re: Log file protection Date: 1 Sep 93 09:04:00 Organization: Inst. f. Neuroinformatik, Ruhr-Universitaet Bochum, FRG Lines: 21 Message-Id: Nntp-Posting-Host: gaspra.neuroinformatik.ruhr-uni-bochum.de In-Reply-To: dwing@uh01.Colorado.EDU's message of Tue, 31 Aug 1993 15:06:10 GMT To: Info-VAX@kl.sri.com X-Gateway-Source-Info: USENET In article <1993Aug31.150610.13722@colorado.edu> dwing@uh01.Colorado.EDU (Dan Wing) writes: Note that you can't really get the specific version number of the log file, and it is possible you could change the protection of the same file with a higher version number if more than one job has the same .LOG file name. Yes, you can. Actually, you could long before $GETQUI and friends existed. What you do get is the DID/FID of SYS$INPUT and SYS$OUTPUT. Where? Dump DCL.STB and look for the PPDxxx symbols (sorry, no VMS system on hand, explore for yourself). The PPD structure is reached via one of those CTL symbols (was that CTL$GL_CLIDATA? some such). It's undocumented, but unlikely to go away (mostly, because too much of DEC's one software would have to change, so why bother). LOGINOUT sets all this up, if I'm not mistaken. You also get access to nice things like flags indicated which qualifiers where used at the username prompt. Using the FID of the log file to do useful things is left as an exercise for the reader... Jan