Operating System - HP-UX
1833775 Members
3134 Online
110063 Solutions
New Discussion

Application to be ran upon startup

 
Henry Chua
Super Advisor

Application to be ran upon startup

Hi,

If I have an application that I want to be ran once the CDE startup, where shall I put it?

Thank you!

regards
Henry
5 REPLIES 5
Bharat Katkar
Honored Contributor

Re: Application to be ran upon startup

Hi,
Have look at .dtprofile.
See man dtprofile.
Regards,
You need to know a lot to actually know how little you know
Ivajlo Yanakiev
Respected Contributor

Re: Application to be ran upon startup

Hi

There are two way to do it.

1. Put start stop script for your X application in /sbin/rc3.d. This is level in which X start. Use Start Stop Unix convention and use last number for your X app script.

2. Use you .dtprofile and add your app.

Henry Chua
Super Advisor

Re: Application to be ran upon startup

Hi, thanks for the response..

I cannot seems to find the command ".dtprofile", btw I am running 10.20b HPUX... and wat do I do to rc3.d?.. do I throw the program inside?

Thank u!

regards
Henry
fisher_2
New Member

Re: Application to be ran upon startup

Hi Henry,
You could create a script which includes the relative command in that directory.
Ivajlo Yanakiev
Respected Contributor

Re: Application to be ran upon startup

Hi again :)


.dtprofile isn't program. It is a config file for your X session. Like start up script.
change dir to
# cd /
and
#cat .dtprofile

About start / stop scripts:

dir /sbin/rc3.d is dir where you must link script that is in /sbin/init.d/ directory.
in /sbin/init.d directory you have all scripts that start/stop services.

first you must go in /sbin/init.d
and create start stop script for your App
take a look template it will give you some points to start.

After that you must link your script into
/sbin/rc3.d
lake
# ln -s /sbin/init.d/app /sbin/rc3.d/S999app