Operating System - HP-UX
1834578 Members
2939 Online
110069 Solutions
New Discussion

Re: .profile not executing with CDE login

 
SOLVED
Go to solution
Greg OBarr
Regular Advisor

.profile not executing with CDE login

HP-UX 11.0
User account with posix shell.
When I telnet in, the $HOME/.profile and /etc/profile will execute. When I login from CDE prompt, they will not. Where is this controlled?
5 REPLIES 5
Paul R. Dittrich
Esteemed Contributor
Solution

Re: .profile not executing with CDE login

When you login to CDE it uses $HOME/.dtprofile

The default behavior is NOT to read $HOME/.profile or $HOME/.login but you can change this by un-commenting the variable DTSOURCEPROFILE down near the end.

The comments in .dtprofile are very complete and useful for regulating the use of these files across both environments.

HTH,
Paul
Praveen Bezawada
Respected Contributor

Re: .profile not executing with CDE login

Hi
IN CDE environment you have to uncomment the line
DTSOURCEPROFILE=true in .dtprofile of the home directory to get the .profile executed upon login.

...BPK...
Alex Glennie
Honored Contributor

Re: .profile not executing with CDE login

Try this =>
login to CDE, run from within a dtterm :

dtterm -ls &

check if your .profile has been read

if yes =>

vi $HOME/.Xdefaults
dtterm*loginShell: True
wq!

for this change to take effect you'll need to either log out of CDE or reload resources.

see man dtterm for details (same for hpterm & xterm).
Greg OBarr
Regular Advisor

Re: .profile not executing with CDE login

Thanks everyone. Uncommenting the line in the .dtprofile file fixed the problem, however, I was still having trouble proving this because I was trying to test it remotely on a PC running eXceed using a dtterm. The dtterm -ls gave me the missing piece that I needed.
Joseph C. Denman
Honored Contributor

Re: .profile not executing with CDE login

Another thing,

Many peoples profiles contain terminal configs. Ensure you don't do anything to affect your TERM variable.

...jcd...
If I had only read the instructions first??