Path: utzoo!mnetor!uunet!husc6!necntc!dandelion!ulowell!hawk!rstpierr From: rstpierr@hawk.ulowell.edu (Pete St.Pierre) Newsgroups: comp.os.vms Subject: Re: Querry on interactive /batch users . Message-ID: <6771@swan.ulowell.edu> Date: 3 May 88 17:50:42 GMT References: <8804260602.AA21680@ucbvax.Berkeley.EDU> Sender: news@swan.ulowell.edu Reply-To: rstpierr@hawk.ulowell.edu (Pete St.Pierre) Organization: University of Lowell, CS Dept. Lines: 24 In article <8804260602.AA21680@ucbvax.Berkeley.EDU> MICHAL@UKANVAX.BITNET writes: >EASY QUESTION: > > Does any one know of a fucntion, system service, or anything that may be >called from a high level langauge (Pascal, C) that would do the same as >VMS's $ SHOW USERS ? > I would like to check if a user is signed on (interactive or batch) >without doing LIB$SPAWN('$ SHOW USERS auser') > Is there a simpler way?? > The $GETJPI system service has an item called JPI$_JOBTYPE that can be specified. It returns the excecution mode of the process. (DETACHED, NETWORK, BATCH, LOCAL, DIALUP, REMOTE). SEE PAGE SYS-215 of the system service manual. ...Pete ------------------------------------------------------------------------------ | Bob (Pete) St.Pierre | | | rstpierr@falcon.ulowell.edu | | | University of Lowell | | | 1 University Ave | | | Lowell, Mass 01854 | | ------------------------------------------------------------------------------