KSH and ENV variable
Guangliang He
ghe at physics.orst.edu
Tue May 14 03:59:53 AEST 1991
In article <moHq21w164w at scona>, root at scona (Corey Wirun) writes:
|>
|> I've got users who have to use Xwindows at the rs/6000 console.
|> They wanted to have the ability to have their .profile settings
|> propagated to aixterm sessions. (e.g. aliases, PS1, etc).
|> So I added to their .profiles:
|>
|> ENV=~/.profile
|> export ENV
|>
|> ...thinking that this would at least help them when they were creating
|> aixterm windows. But now, of course, their .profiles are run twice
|> everytime they log in (via telnet or at the console). Not a big problem,
|> but some users have very verbose .profiles where there is lots of
|> output that is displayed twice.
|>
|> How do I fix this to make everyone happy? I tried putting the 2 lines
|> just before the exec in the .xinitrc files, but no workie.
|>
What you probably want to do is to split .profile to .profile and another
file, say .envfile. Put those things you only need to do once in .profile
and put aliases in .envfile. And in .profile, you put the lines
ENV=~/.envfile
export ENV
|> Thanks!
|>
You're welcome.
|> ---------------------------------------------------------------------------
|> "This, of course, is impossible..." - Hitchhiker's Guide to the Galaxy
|> Corey Wirun, BSc - Systems Analyst, Esso Petroleum Canada,
|> Strathcona Refinery. Edmonton, Alberta
|> root at scona.UUCP || cwirun at uncanet.BITNET || cwirun at ucnet.ucalgary.ca
|> ...aunro!edm!scona!root
|> ---------------------------------------------------------------------------
---
Guangliang He | -----Go Blazers!-----
ghe at physics.orst.edu | -----Go Blazers!-----
More information about the Comp.unix.aix
mailing list