Operating System - HP-UX
1833467 Members
3169 Online
110052 Solutions
New Discussion

How do I execute users .profile during a CDE login

 
SOLVED
Go to solution
wvsa
Regular Advisor

How do I execute users .profile during a CDE login

Greetings,

We have several users that need to run in a CDE environment. However in running the CDE environment they lose their environment variables in their .profile. Have exported the DTSOURCEPROFILE in the .dtprofile and have included the following in the users .profile

if [ ! "$DT" ]; then
TERM=$(ttytype)
stty erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z"
stty brkint hupc1 ixon ixoff
fi

What Iam I missing? Thankyou for your input!
3 REPLIES 3
Denver Osborn
Honored Contributor

Re: How do I execute users .profile during a CDE login

So "DTSOURCEPROFILE=true" is uncommented in $HOME/.dtprofile?

What about the shell, anything other than sh or ksh being used?
Alex Glennie
Honored Contributor
Solution

Re: How do I execute users .profile during a CDE login

try running "dtterm -ls" .... any better ?

if yes vi $HOME/.Xdefaults and add "*loginShell : True"

see man dtterm etc for details
federico_3
Honored Contributor

Re: How do I execute users .profile during a CDE login

The simplest way to ensure .profile is run in all CDE terminal windows is set the following:

Edit the file /etc/dt/config/C/sys.resources ( copy this from /usr/dt/config/C if it does not exist )
add the line:
*loginShell: True.


Federico