Operating System - HP-UX
1825803 Members
2709 Online
109687 Solutions
New Discussion

Running Program at CDE Session Startup

 
SOLVED
Go to solution
stefano_20
Occasional Contributor

Running Program at CDE Session Startup

I have to run a program at CDE Session Statup.
Can anyone help me?
Thanks in advance.

Stefano
4 REPLIES 4
Umapathy S
Honored Contributor

Re: Running Program at CDE Session Startup

Stefano,
You can add that at then end of the users .dtprofile.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Mark Grant
Honored Contributor

Re: Running Program at CDE Session Startup

Don't wish to tread on Umapathy's toes but I'd just like to add that it's a goo didea to remember to run you application in the background! (with a &) else you will get the aplpication but won't get CDE until you exit it.
Never preceed any demonstration with anything more predictive than "watch this"
stefano_20
Occasional Contributor

Re: Running Program at CDE Session Startup

Thanks for your response!
My program have to run at CDE Session Startup so isn't important who is logging to workstation but is important that my program run after a generic user is logged on.
SOLARIS offers a /usr/dt/config/sessionetc file in which is possibile to insert a command to execute at CDE Session Startup.
Isn't there a same thing in HP-UX?

thanks
Mike Stroyan
Honored Contributor
Solution

Re: Running Program at CDE Session Startup

I will assume that we are talking about 11.x and CDE 2.1.

Rather than /usr/dt/config/sessionetc, you can create script files in the /etc/dt/config/Xsession.d directory. They will each be run by dtsession for all users.

You can also use a ~/.dt/sessions/sessionetc file in specific user's directories to run commands.

Be careful about running commands that will be automatically restarted by the session manager. That could cause multiple copies to run, adding an additional copy for each login.

These are discussed in "man dtsession" and in the "Common Desktop Environment: Advanced User's and System Administrator's Guide" at-
http://www.docs.hp.com./hpux/onlinedocs/B1171-90162/B1171-90162.html