home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / 18721 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.6 KB

  1. Path: sparky!uunet!spool.mu.edu!olivea!sgigate!odin!fido!fudge!karlton
  2. From: karlton@fudge.asd.sgi.com (Phil Karlton)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Help: problems with remote mailbox
  5. Message-ID: <1iveniINNoo2@fido.asd.sgi.com>
  6. Date: 12 Jan 93 21:54:58 GMT
  7. References: <1993Jan9.015630.10432@spartan.ac.BrockU.CA> <1ilmtjINNpqc@fido.asd.sgi.com>
  8. Organization: Silicon Graphics, Inc.  Mountain View, CA
  9. Lines: 57
  10. NNTP-Posting-Host: fudge.asd.sgi.com
  11.  
  12.  
  13. In article <1ilmtjINNpqc@fido.asd.sgi.com>, karlton@fudge.asd.sgi.com writes:
  14.     mailbox is not an X program, but rather a straight GIrisGL program.
  15.     Check out the 'env' and 'GLResources' man pages. I haven't tested it
  16.     but something like
  17.  
  18.         env DISPLAY=A.A GLRES="*geometry: 70x70+50+50" mailbox 
  19.  
  20.     executed on machine B.B should do something close to what you want.
  21.  
  22. One should test things before posting them. Shame on me.
  23.  
  24. This doesn't work for 2 reasons (that I had to chase down but should
  25. have known).
  26.  
  27. One is that when running a GL program remotely, the user's environment
  28. is not passed to DGL daemon and hence the GLRES stuff will be ignored.
  29. (It gets examined by the IrisGL library that will end up doing the
  30. actual rendering.) To get around that problem, put something like
  31.  
  32.         mailbox*geometry: +100+200
  33.  
  34. in your .Xresources file (or .Xdefaults file on the machine where the
  35. DGL daemon will run.)
  36.  
  37. To get around the problem of hanging on tty input (assuming you are a
  38. csh user) try something like
  39.  
  40.     rsh B.B -n 'env DISPLAY=A.A /usr/sbin/mailbox -s 200 >& /dev/null ' \
  41.         >& /dev/null &
  42.  
  43. Since mailbox unconditionally calls prefsize, you must set the size
  44. with the "-s" switch. If your default shell is 'sh' derived I think you
  45. need to substitute ">/dev/null 2>&1" for each place ">& /dv/null" occurs
  46. above. (There I go again: not testing my suggestions.)
  47.  
  48. ===== Digression regarding .Xdefaults (or .Xresources files). ===========
  49.  
  50. Just editing your .Xdefaults file  will have no immediate effect if
  51. you've downloaded your .Xdefaults to be a property on the root window.
  52. You can test this by running
  53.  
  54.     xprop -root RESOURCE_MANAGER
  55.  
  56. to see if you have downloaded your default resources. Check to see if
  57. you run xrdb in your .xsession or .sgisession file. If so, reload the
  58. porperty after you've edited .Xdefaults. (The default
  59. /usr/lib/X11/xdm/Xsession file downloads .Xresources.  As has been
  60. written in other places, .Xdefaults is consulted only if the property
  61. doesn't exist mostly for backward compatibility.
  62.  
  63. PK
  64. --
  65. Phil Karlton                Silicon Graphics Computer Systems
  66. The Curmudgeon                2011 N. Shoreline Blvd.
  67.                     Mountain View, CA  94039-7311
  68. karlton@.sgi.com            415-390-1557
  69.