1833159 Members
3084 Online
110051 Solutions
New Discussion

Re: dt login prblm

 
David Bellamy
Respected Contributor

dt login prblm

hi all,

i have a login problem to cde whenever i source
an optivity(nortel) environment script. no problem when i dont. any ideas?

thx in advance
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: dt login prblm

type
env > file1
before you source it
then
env > file2
after you source it

then diff file1 file2
to find out the changes it makes

You want to watch out for changes in DISPLAY in particular

Later,
Bill
It works for me (tm)
Filip Luks
New Member

Re: dt login prblm

Thanks,
I did try it and I see no change in DISPLAY.
Shannon Petry
Honored Contributor

Re: dt login prblm

You need to find out which environment variable is changing when running the script.
First, before running the script do this...
touch $HOME/good_env.txt
set >>$HOME/good_env.txt
printenv >>$HOME/good_env.txt

Next, dump the bad environment...
. nortel_script
touch $HOME/bad_env.txt
set >>$HOME/bad_env.txt
printenv >>$HOME/bad_env.txt

look at the differences between the two files, and find the overlapping variable. There are many things that can mess with the login, such as.... HOSTNAME, LOGNAME, LD_LIBRARY_PATH, SHLIB_PATH, DISPLAY, HOME, and more.

Regards,
Shannon
Microsoft. When do you want a virus today?
Wodisch
Honored Contributor

Re: dt login prblm

Hello David,

I guess you do have a problem with X-Windows
config variables, so check the output of your "env"
commands for variables in upper-case starting with "X".
Post the outputs of those "env" commands, if you cannot
find the differences...
AND it could be the script is using "xrdb" to "-load" or
"-merge" some variables, which would cause your
problems... Then we would be interested in the outputs
of "xrdb -query" before and after executing that script!

HTH,
Wodisch