home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7872 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.9 KB

  1. Xref: sparky comp.sys.next.programmer:7872 comp.sys.next.sysadmin:7171
  2. Newsgroups: comp.sys.next.programmer,comp.sys.next.sysadmin
  3. Path: sparky!uunet!almserv!bnixon
  4. From: bnixon@fnma.com (Bill Nixon)
  5. Subject: How to open a connection without PublicWindowServer set?
  6. Message-ID: <1992Dec22.011725.10555@almserv.uucp>
  7. Followup-To: comp.sys.next.programmer
  8. Sender: usenet@almserv.uucp
  9. Nntp-Posting-Host: loki
  10. Organization: FannieMae, Washington, DC
  11. Date: Tue, 22 Dec 1992 01:17:25 GMT
  12. Lines: 41
  13.  
  14. I wrote a little application which allows me to pop up an
  15. alert panel on the Workspace from the command line, ala
  16. /usr/lib/NextPrinter/Inform.
  17.  
  18. This works great as long as I am doing it from a Terminal
  19. Session I started.  But, it does not work if I rlogin into
  20. the machine.  I know about PublicWindowServer and DON'T want
  21. to turn it on for various reasons.
  22.  
  23. I tried to su to root and do the same thing, but this
  24. doesn't even work.  I mucked around and read in the
  25. loginwindow(8) man page that an application must be
  26. descended from either the Workspace or be a special system
  27. process such as the printer daemon.  And yes, this seems to
  28. hold true.
  29.  
  30. Now, how can I get around this?  I want to write a one of
  31. the aforementioned special system processes that can write
  32. to the Workspace without Public Window Server being set but
  33. have no idea what the Workspace is looking for...
  34.  
  35. Why do I want to do this?  Well, I'd like to put up an panel
  36. on a machine when I am about reboot a machine remotely like
  37. this:
  38.  
  39. rlogin machine
  40. su
  41. displaymsg "Message is going to reboot in 60 seconds"
  42. sleep 60
  43. reboot
  44.  
  45. Any pointers to help solve this problem would be greatly
  46. appreciated.  Note that I am trying to do this under
  47. NeXTSTEP 3.0.
  48.  
  49. Thanks!
  50.  
  51. -- 
  52. bnixon@fnma.com or ...!uunet!fnma.com!bnixon (NeXT Mail Okay)
  53. Bill Nixon, Senior Programmer Analyst, Advanced Technology, 2H-4S
  54. FannieMae, 3900 Wisconsin Ave NW, Washington, DC 22016  (202) 752-5468
  55.