From: MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 12-JAN-1993 10:07:14.72 To: info-vax@kl.sri.com CC: Subj: Re: help on SET WATCH? In article <11JAN199318354679@loyola.edu>, cmelaro@loyola.edu (Chris Melaro) writes: |>Can anyone help me with the undocumented SET WATCH command? I've used it in |>the past but can't seem to remember all the paramaters now. Hereafter, is all the information I have on it. SET WATCH is an unsupported, undocumented feature of VMS (4.x, 5.x) It needs CMKRNL. (CMEXEC may suffice) As such, it should be used with caution. It executes the image SYS$SYSTEM:SETWATCH.EXE who simply sets a few bits in the high byte of PIO$GW_DFPROT in your P1 space. It gives information on all the accessed files in a batch or interactive session, the information to be displayed is selected with the class parameter (see below). It is a very handy tool to get information on files used by an executable for which no documentation is available. It is activated via the DCL command SET WATCH FILE/CLASS=xxxx xxxx may take the following values: ALL (gives all the information) ATTRIBUTES (gives the attributes of each open files) CONTROL_FUNCTIONS (*) DIRECTORY_OPERATIONS (*) DUMP (Gives the FIB contents for each referenced files) MAJOR_FUNCTION (*) (Access, deaccess, lookup) QUOTA_OPERATIONS (displayed QUOTA changes) NONE (To deactivate SET WATCH) (*) signals the more interesting classes. All is very verbose, Major is usually sufficient. This command mimics the SET WATCH FILES command from the Tops-10 operating system. The one thing it's missing is telling you the directory an accessed file is in. The reason for this is that by the time the XQP (which is what's reporting all of this info, by the way) gets around to telling you about something it's really operating by file ID. -- ------------------------------------------------------------------------------ Christiane LETERTRE CERN / European Laboratory for Particle Physics CH-1211 GENEVA 23 Tel: (022) 767 28 54 Mail address: LETERTRE@VXCERN.DECNET.CERN.CH ------------------------------------------------------------------------------