Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!ogicse!orstcs!thyphy.physics.orst.edu!ghe From: ghe@physics.orst.edu (Guangliang He) Newsgroups: comp.unix.aix Subject: Re: KSH and ENV variable Message-ID: <1991May13.175953.29198@lynx.CS.ORST.EDU> Date: 13 May 91 17:59:53 GMT References: Sender: @lynx.CS.ORST.EDU Reply-To: ghe@physics.orst.edu Organization: Dept. of Physics, Oregon State University Lines: 45 Nntp-Posting-Host: thyphy.physics.orst.edu In article , root@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@scona.UUCP || cwirun@uncanet.BITNET || cwirun@ucnet.ucalgary.ca |> ...aunro!edm!scona!root |> --------------------------------------------------------------------------- --- Guangliang He | -----Go Blazers!----- ghe@physics.orst.edu | -----Go Blazers!-----