On the system I use, I execute the program right in the sysinit file
(/etc/config/sysinit.#) just before it tries to run tinit. I have actually
reconfigured my sysinit to start
the Photon graphics drivers almost immediately, start up some other drivers
(Input, serial, etc) then start the window manager, without the need to log
Basically the sysinit file is what you want to modify. I would “export
PATH=$PATH;/mypath” somewhere in that file to add the path to my executable
to the PATH environment variable somewhere near the beginning of the sysinit
file. The next file that it might run (if you use Photon) is ph. This is
just a script that starts up drivers, and runs the windows manager. Near
the end of this file, you could add whatever calls to execute a program that
might be Photon based if you wish. (I don’t remember where ph is by default,
it might be /bin or /usr/bin)
That’s just what I do, I’m sure there are other ways to do what you want.
But I find it easier to modify these files to do what I want them to.
“Sriharsha Patil” <email@example.com> wrote in message
I am graduate student at the University of Missouri-Rolla, working on
project in Embedded Systems.
I need to make an executable file (C object code) execute as soon as
QNX4.25 is started up. (Even before login prompt appears)
It would be great if somebody could tell me where and how to include
path of this executable file to achieve this.