From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,de80c254e7906553,start X-Google-Attributes: gid1164f8,public From: patemery@omni.voicenet.com (Patrick Emery) Subject: complex problem connecting two separate processes Date: 1995/12/12 Message-ID: #1/1 X-Deja-AN: 121581404 organization: Voicenet - Internet Access - (215)674-9290 newsgroups: comp.sys.dec I need some help with attaching interactive sessions with background jobs. I currenly have a system with a captive account into which many people log in and run a single shared image. This image is an interactive program that requires some time-consuming initialization. Once initialized, the user works with the interactive terminal intermittently throughout the day. If the terminal sits inactive for some specified period the image terminates and the captive account logs out. We would like to have a pool of processes, each running this image, execute in the background up to the point where interactive i/o is necessary. At which time the process should go into HIB. Whenever someone logs into the captive account, we would like some sort of attach/connect/whatever between the interactive session and one of the HIB processes. At this point the user could do whatever work necessary without having to sit waiting during the time- consuming initialization. The interactive system could then be used throughout the day as usual. When the user is done and logs out, the interactive session and the associated image should go away. We always want some number of the background jobs HIBernating so that a user can connect to it without having to wait. Any suggestions for implementing this would be appreciated. There are two obstacles as we see it. First, how to establish the connection between the interactive session and the background process. Second, how to have the background process sitting in HIBernate recognize that it now has an interactive terminal associated with it so it can display its prompts. Any comments or suggestions can be forwarded to patemery@voicenet.com. Thanks