Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!lll-crg!nike!ucbcad!ucbvax!UWAV4.BITNET!8250480 From: 8250480@UWAV4.BITNET Newsgroups: mod.computers.vax Subject: RE: F$GETJPI Message-ID: <8608021721.AA12676@ucbvax.Berkeley.EDU> Date: Fri, 1-Aug-86 19:21:00 EDT Article-I.D.: ucbvax.8608021721.AA12676 Posted: Fri Aug 1 19:21:00 1986 Date-Received: Sun, 3-Aug-86 03:43:37 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 28 Approved: info-vax@sri-kl.arpa > Date: Wed, 30 Jul 86 15:50:06 -0500 > From: Mark H. Granoff > > I am running VMS v4.2 on a VAX cluster (a 785 and a 780). Why, when I > type > $ WRITE SYS$OUTPUT F$GETJPI("","OWNER") > > do I get nothing?? I can type WRITE SYS$OUTPUT F$GETJPI("","USERNAME") > to get my username, and I can get every other piece of AUHTORIZE > information EXCEPT Owner. The process OWNER attribute is not really a AUTHORIZE piece of information; instead, for a sub-process it returns the PID of the process that created it, for a "top-level" process it returns the null string (no owner). Try: $ WRITE SYS$OUTPUT F$GETJPI("","PID") ! display current process then, $ SPAWN ! create a sub-process then, $ WRITE SYS$OUTPUT F$GETJPI("","OWNER") ! display PID of owner then, $ LOGOUT ! return to master process Both WRITE statements will display the same PID. -- Erik A. Abers -- 501 N. 36th. St. #167 -- University of Washington -- Seattle, WA 98103; USA Bitnet: 8250480@UWAV4.BITNET Arpanet: 8250480%UWAV4.BITNET@WISCVM.ARPA Usenet: 8250480%UWAV4.BITNET@WISCVM.WISC.EDU