Article View: comp.sys.sgi.misc
Article #286What makes /usr/bin/X11/userenv tick?
From: Paul Tatarsky
Date: Wed, 27 Jan 1993 17:56
Date: Wed, 27 Jan 1993 17:56
22 lines
1415 bytes
1415 bytes
I am setting up XDM on an non-SGI system, and find myself wishing I had the source for /usr/bin/X11/userenv. I am looking for a way to have the users environment variables be used by the XDM Xsession script, _without_ making the Xsession script a /bin/csh script and sourcing the $HOME/.cshrc file (something that causes problems if the user has a bunch of tty oriented commands), and without forcing them to place the commands in their .xsession. So, eval `/usr/bin/X11/userenv` would make a nice little one liner in my non-SGI Xsession. I did a strings on userenv and see that it does something with /bin/env which I do have available, but what does it do? I've tried all sorts of shell script eval's and execs to get this "login" emulation out of Xsession, and have failed. Anyone? Some nice soul at SGI care to post the source? Some wizard care to elighten me? Paul Tatarsky email: paul@cse.ucsc.edu UC Santa Cruz CIS/CE Board Technical Staff
Technical Details
Message-ID:
<1k6id2INN29c@darkstar.UCSC.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!scifi!acheron!philabs!linus!agate!darkstar.UCSC.EDU!aztec!paulShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!scifi!acheron!philabs!linus!agate!darkstar.UCSC.EDU!aztec!paul From: paul@aztec.ucsc.edu ( Paul Tatarsky) Newsgroups: comp.sys.sgi.misc Subject: What makes /usr/bin/X11/userenv tick? Date: 27 Jan 1993 17:56:49 GMT Organization: UC Santa Cruz CIS/CE Lines: 22 Distribution: world Message-ID: <1k6id2INN29c@darkstar.UCSC.EDU> Reply-To: paul@terra.ucsc.edu NNTP-Posting-Host: aztec.ucsc.edu