From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c7be9585a4949490,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-05-04 12:01:36 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!noc.near.net!uhasun!UHAVAX.HARTFORD.EDU From: TRUNTZ@UHAVAX.HARTFORD.EDU (TRUNTZ, ERIC) Newsgroups: comp.sys.dec Subject: Vax/VMX question Message-ID: <66@ultrix.uhasun.hartford.edu> Date: 4 May 93 18:32:08 GMT Sender: news@uhasun.hartford.edu Organization: THE UNIVERSITY OF HARTFORD Nntp-Posting-Host: uhavax X-News-Reader: VMS NEWS 1.24 Everyone, Either Ive been doing something wrong, Ive lost my mind or both... I have asked this question on this list several times. I have never posted directly to the news group. I recieve posts from the list but I cannot get help from the server nor do my posts make it to the list.. I do however still have a question Ive been wrestling with. It concerns the communication of a terminal to a process... I'm working on an application that will display the interactive usernames of each user on a specific node in our cluster. It determines the user's physical location as well as the name of the image they are currently running. We use this software to manage our labs so that we can keep track of available terminals in certain labs and so on... Getting the username and the location of the user is reasonable simple. My problem arises in determining which imagename to select for a user. Suppose a user has logged in and his process name is USER then he spawns a subprocess called USER_1 he now has two processes on the system. At this stage all keystrokes that the user makes will end up affecting the process named USER_1. This is what I mean when I say a termianl is communicating with a process. Suppose the usaer types ATTACH USER, Now keystrokes get "sent" to the process call USER. My question is how can I determine which process a terminal is communicating with. the JPI$TERMINAL and JPI$PHYDEVNAM work fine so long as the process in question is not a subprocess. If it is these call get me nowhere. VMS must know which process to talkto however. Id like to know how it knows or rather how I can find out if a process is currently communicating with a terminal or if its just out in the "background" please pardon the Unix term :) If anyone has any clues please post to this news group. I cannot trust that I will recieve mail at this point. (Trying to satraighten things out) Thanks in advance........ Sysop3%uhavax.dnet@ipgate.hartford.edu eric.