Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!decwrl!pyramid!hplabs!ucbvax!CSNET-RELAY.ARPA!HELLER%cs.umass.edu From: HELLER%cs.umass.edu@CSNET-RELAY.ARPA.UUCP Newsgroups: mod.computers.vax Subject: RE: F$GETJPI Message-ID: <8608022231.AA16137@ucbvax.Berkeley.EDU> Date: Fri, 1-Aug-86 10:44:00 EDT Article-I.D.: ucbvax.8608022231.AA16137 Posted: Fri Aug 1 10:44:00 1986 Date-Received: Sun, 3-Aug-86 04:08:09 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 33 Approved: info-vax@sri-kl.arpa F$GETJPI("","OWNER") returns the owner processes's PID, the the UAF Owner field! That means that for your root processes, F$GETJPI("","OWNER") returns blank. Try this: $ spawn write sys$output f$getjpi("","OWNER") This is an *expensive* way to do $ write sys$output f$getjpi("","PID") I don't think that f$getjpi (or sys$getjpi) can get you the Owner field of the SYSUAF file. You have to get that info directly from the SYSUAF file yourself. This probably means an installed (with privs) program. I don't think this field is used by VMS for anything except for purely informative purposes. That is, it is there in the UAF for system manager types to look at to help them map between usernames and real people. Also, it is available for used by accounting programs to include on the billheads and for use by "whois" and "finger" type programs to help users map between usernames and real people (we have a "whois" program here at UMass - it searches the UAF using a varity of search "keys" and formats a brief to verbose output of parts of UAF records). The old version of the PMDF software used the owner field as a default string to stuff in the From: field before the "cryptic" arpanet/csnet address (in "<", ">"'s). I don't believe that LOGINOUT bothers to copy this UAF field from SYSUAF.DAT to the process's database (JIB, PCB, whatever). Robert Heller CSNET: Heller@UMass-CS.CSNET BITNET: Heller@UMass.BITNET BIX: heller