home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / misc / 394 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.3 KB

  1. Path: sparky!uunet!scifi!acheron!philabs!linus!agate!darkstar.UCSC.EDU!aztec!paul
  2. From: paul@aztec.ucsc.edu ( Paul Tatarsky)
  3. Newsgroups: comp.sys.sgi.misc
  4. Subject: What makes /usr/bin/X11/userenv tick?
  5. Date: 27 Jan 1993 17:56:49 GMT
  6. Organization: UC Santa Cruz CIS/CE
  7. Lines: 22
  8. Distribution: world
  9. Message-ID: <1k6id2INN29c@darkstar.UCSC.EDU>
  10. Reply-To: paul@terra.ucsc.edu
  11. NNTP-Posting-Host: aztec.ucsc.edu
  12.  
  13. I am setting up XDM on an non-SGI system, and find myself wishing I
  14. had the source for /usr/bin/X11/userenv. I am looking for a way to
  15. have the users environment variables be used by the XDM Xsession
  16. script, _without_ making the Xsession script a /bin/csh script and
  17. sourcing the $HOME/.cshrc file (something that causes problems if the
  18. user has a bunch of tty oriented commands), and without forcing them
  19. to place the commands in their .xsession.
  20.  
  21. So, eval `/usr/bin/X11/userenv` would make a nice little one liner in
  22. my non-SGI Xsession. I did a strings on userenv and see that it does
  23. something with /bin/env which I do have available, but what does it
  24. do?
  25.  
  26. I've tried all sorts of shell script eval's and execs to get this
  27. "login" emulation out of Xsession, and have failed. Anyone? Some nice
  28. soul at SGI care to post the source? Some wizard care to elighten me?
  29.  
  30.  
  31.  Paul Tatarsky         email: paul@cse.ucsc.edu
  32.  UC Santa Cruz
  33.  CIS/CE Board          
  34.  Technical Staff
  35.