Operating System - HP-UX
1831178 Members
3001 Online
110021 Solutions
New Discussion

Executing root user profile when opening a new windows in CDE

 
HMK
New Member

Executing root user profile when opening a new windows in CDE

Hi everyone,

Need some advice on how to automatically execute the root user profile when opening a new windows (dtterm) in CDE environment.

I had tried uncomment DTSOURCEPROFILE=true in dtprofile. Unable to locate the Xdefaults in home directory, and had even tried creating one with the *loginShell: true but the root user profile still does not execute when opening a new dtterm.
2 REPLIES 2
Ralf Seefeldt
Valued Contributor

Re: Executing root user profile when opening a new windows in CDE

Hello HMK

when you are using dtterm, tho option -ls indicates, that the loginscripts have to be executed.

The same option is available for xterm and hpterm.

Bye
Ralf
Heiner E. Lennackers
Respected Contributor

Re: Executing root user profile when opening a new windows in CDE

HMK,

the profile will be executed when you login to CDE. Opening a new shell is not a "login" for the system, it will not source the profile unless you specify the option -ls to yuur terminal (dtterm, xterm etc). But you can set the environment variable ENV to a profile (e.g. /profile-env) which will be sourced everytime you open a new shell (even it is not a login shell).

HeL
if this makes any sense to you, you have a BIG problem