home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / vmsnet / internal / 1172 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.6 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!zl2tnm!don
  2. Newsgroups: vmsnet.internals
  3. Subject: Re: DETACHED process -> INTERACTIVE
  4. Message-ID: <1992Aug23.020451.1985@zl2tnm.gen.nz>
  5. From: don@zl2tnm.gen.nz
  6. Date: 23 Aug 92 02:04:50 +1200
  7. References: <1992Aug14.193402.116675@rrz.uni-koeln.de> <6050@npri6.npri.com>
  8. Organization: The Wolery
  9. Lines: 33
  10.  
  11. >>How can I change the mode of a process from DETACHED
  12. >>to INTERACTIVE, that would be nice for some DECwindows
  13. >>related process startups (run/detached) which will run
  14. >>SYLOGIN and LOGIN (now we have to check for f$mode()
  15. >>= interactive or other) ? E.g. we run/detached DECW$SESSIONCOM
  16. >>to startup Session manager on terminals which are also
  17. >>used to connect to other (U*X) hosts and therefore should
  18. >>not be hardwired to a system via DECW$START_LOGIN.
  19.  
  20. murphy@npri6.npri.com (David P. Murphy) writes:
  21. [Serious hackery deleted]
  22.  
  23. Am I just being naive, or isn't it easier just to start an interactive 
  24. process in the first place?  Something along the lines of:
  25.  
  26.         $PRCDEF
  27. tty:         .ascid "TXA5:"
  28. loginout:    .ascid "SYS$SYSTEM:LOGINOUT.EXE"
  29. prcnam:        .ascid "Test process"
  30.  
  31. x::        .word ^M<>
  32.         $CREPRC_S image=loginout, input=tty, output=tty, -
  33.             prcnam=prcnam, baspri=#4, -
  34.             stsflg=#PRC$M_INTER!PRC$M_DETACH!PRC$M_NOPASSWORD
  35.         ret
  36.         .end x
  37.  
  38. Maybe with some suitable hackery to run a particular command file at 
  39. startup, eg LOGIN.COM having a squiz at the process name.
  40.  
  41. Don Stokes, ZL2TNM (DS555)                       don@zl2tnm.gen.nz (home)
  42. Network Manager, Computing Services Centre           don@vuw.ac.nz (work)
  43. Victoria University of Wellington, New Zealand             +64-4-495-5052
  44.