home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3648 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.1 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!wupost!darwin.sura.net!europa.asd.contel.com!ssvax!chapin
  2. From: chapin@ssvax.gte.com (Barry Chapin)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Obtaining uppermost 'controlling' pid?
  5. Message-ID: <1992Aug19.123624.22341@europa.asd.contel.com>
  6. Date: 19 Aug 92 12:36:24 GMT
  7. Article-I.D.: europa.1992Aug19.123624.22341
  8. Sender: news@europa.asd.contel.com (News)
  9. Organization: GTE/SCSD
  10. Lines: 20
  11. Nntp-Posting-Host: 100.14.40.6
  12.  
  13.  
  14. Hello all,
  15.  
  16. I need to obtain, from within an application running in a nested shell,
  17. the process id of the controlling process of a remotely logged in user
  18. session.  That is, the 'uppermost' or 'root' process id of the process
  19. that is started when a remote connection (an ISODE VT connection) is
  20. recieved And the responder process is started, which then in turn starts
  21. a shell for that remotely logged in user.
  22.  
  23. Eg: If this user then 'spawns' other shells or whatever, how can an
  24. aplication running in any of these possibly deeply nested, lower level
  25. shells, get the process id of that original starting responder process?
  26.  
  27. Thanks in advance.
  28.  
  29. -Barry Chapin
  30. GTE Government Systems
  31.  
  32. Email to CHAPIN%SCSD@GTE.COM
  33.