1834732 Members
2731 Online
110070 Solutions
New Discussion

customising users

 
Carine Parmentier
Occasional Contributor

customising users

HP-UX 11.11
Adding a new prompt into the .profile does not change when using telnet, login and su - cmd's; unless I really logout/login again. This sounds weird to me. I made the change into .dtprofile.
any help
thanks
Carine
4 REPLIES 4
Govinda_1
Valued Contributor

Re: customising users

HI,

can u tell me which file u made changes ??

can u paste the entries u made in the files here..

Regards
Govind.
Pete Randall
Outstanding Contributor

Re: customising users

Carine,

The .dtprofile would be read when a new CDE window (dtterm, hpterm, whatever) is opened. You can force the effect to happen immediately by sourcing the .dtprofile with ". .dtprofile" at the command prompt (note the space in between the dots).


Pete

Pete
Pete Randall
Outstanding Contributor

Re: customising users

I'll take part of that previous statement back: the .dtprofile is only read when logging into CDE, not whenever a window is opened.


Pete

Pete
Carine Parmentier
Occasional Contributor

Re: customising users

The .dtprofile is not the problem, as the PS1 variable which I changed into the .profile is executed when you really log off/on again; but it is not executed when you do a telnet, login, su - cmd.
What did I change ?
1. remove the # in DTSOURCEPROFILE=true in .dtprofile
2. add a new prompt in .profile
3. sourced the .dtprofile and .profile or log off
4. When originally loggin on as that user, no problem - when loggin on via telnet, login or su - cmd, it recognise there is another prompt, but it is not doing the variable substitution within my PS1 variable.
any suggestions ?