automatic program startup

So, we have written this great application. We can login to our qnx
target, copy the file over and run it. Now we want the machine to run the
application every time it powers up, without requiring someone to log in.
Where is the equivalent of MS-DOS’ autoexec.bat file? Do I create a file
called RC and put it in the etc directory?

Thanks

Geoff Lansberry <lanspam@mail.premiumpower.com> wrote:

So, we have written this great application. We can login to our qnx
target, copy the file over and run it. Now we want the machine to run the
application every time it powers up, without requiring someone to log in.
Where is the equivalent of MS-DOS’ autoexec.bat file? Do I create a file
called RC and put it in the etc directory?

QNX6 or QNX4? On QNX6 you can write a shell script named /etc/rc.d/rc.local
and add any commands to be run at boot.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Previously, Chris McKillop wrote in comp.os.qnx:

Geoff Lansberry <> lanspam@mail.premiumpower.com> > wrote:
So, we have written this great application. We can login to our qnx
target, copy the file over and run it. Now we want the machine to run the
application every time it powers up, without requiring someone to log in.
Where is the equivalent of MS-DOS’ autoexec.bat file? Do I create a file
called RC and put it in the etc directory?


QNX6 or QNX4? On QNX6 you can write a shell script named /etc/rc.d/rc.local
and add any commands to be run at boot.

For QNX4, you can invoke your application from the script /etc/config/sysinit.$NODE

  • PDM


±---- Pete DiMarco ------±--------------------------------------+
| Staff Software Engineer | Web: www.ifspurity.com |
| Integrated Flow Systems | Email: peted [At] ifspurity [Dot] com |
±------------------------±--------------------------------------+
<< Opinions expressed here are my own, not those of my employer. >>

Is there a system administration guide out there somewhere that explains all
of these things? I’ve got a lot of simple questions (like how dow I install
a printer) and I’m thinking there must be a document that explains it all,
but can’t find anything on QNXs website or in any of the documentation. How
do you guys know all of this?

Geoff

“Pete DiMarco” <peted@ifspurity.com> wrote in message
news:Voyager.040505141240.166A@node1…

Previously, Chris McKillop wrote in comp.os.qnx:
Geoff Lansberry <> lanspam@mail.premiumpower.com> > wrote:
So, we have written this great application. We can login to our qnx
target, copy the file over and run it. Now we want the machine to run
the
application every time it powers up, without requiring someone to log
in.
Where is the equivalent of MS-DOS’ autoexec.bat file? Do I create a
file
called RC and put it in the etc directory?


QNX6 or QNX4? On QNX6 you can write a shell script named
/etc/rc.d/rc.local
and add any commands to be run at boot.

For QNX4, you can invoke your application from the script
/etc/config/sysinit.$NODE

  • PDM


±---- Pete DiMarco ------±--------------------------------------+
| Staff Software Engineer | Web: > www.ifspurity.com > |
| Integrated Flow Systems | Email: peted [At] ifspurity [Dot] com |
±------------------------±--------------------------------------+
Opinions expressed here are my own, not those of my employer.

Previously, Geoff Lansberry wrote in comp.os.qnx:

Is there a system administration guide out there somewhere that explains all
of these things? I’ve got a lot of simple questions (like how dow I install
a printer) and I’m thinking there must be a document that explains it all,
but can’t find anything on QNXs website or in any of the documentation. How
do you guys know all of this?

I don’t know about QNX6, but all the manuals for QNX4 are
available online through Photon’s Helpviewer application. In
this case, I found the information in the Installation &
Configuration manual…

  • PDM

Geoff

“Pete DiMarco” <> peted@ifspurity.com> > wrote in message
news:Voyager.040505141240.166A@node1…
Previously, Chris McKillop wrote in comp.os.qnx:
Geoff Lansberry <> lanspam@mail.premiumpower.com> > wrote:
So, we have written this great application. We can login to our qnx
target, copy the file over and run it. Now we want the machine to run
the
application every time it powers up, without requiring someone to log
in.
Where is the equivalent of MS-DOS’ autoexec.bat file? Do I create a
file
called RC and put it in the etc directory?


QNX6 or QNX4? On QNX6 you can write a shell script named
/etc/rc.d/rc.local
and add any commands to be run at boot.

For QNX4, you can invoke your application from the script
/etc/config/sysinit.$NODE

  • PDM


±---- Pete DiMarco ------±--------------------------------------+
| Staff Software Engineer | Web: www.ifspurity.com |
| Integrated Flow Systems | Email: peted [At] ifspurity [Dot] com |
±------------------------±--------------------------------------+
<< Opinions expressed here are my own, not those of my employer. >>

Pete DiMarco <peted@ifspurity.com> wrote:
PD > Previously, Geoff Lansberry wrote in comp.os.qnx:

Is there a system administration guide out there somewhere that explains all
of these things? I’ve got a lot of simple questions (like how dow I install
a printer) and I’m thinking there must be a document that explains it all,
but can’t find anything on QNXs website or in any of the documentation. How
do you guys know all of this?

PD > I don’t know about QNX6, but all the manuals for QNX4 are
PD > available online through Photon’s Helpviewer application. In
PD > this case, I found the information in the Installation &
PD > Configuration manual…

QNX6 also has on-line manuals.

Although the QNX4 manuals have over a decade of maturity and te QNX6
manuals are “younger”.

In either OS, I would start by reading the “System Archecture Guide”
completely first. Then follow any links that you think are relivent
to whatever you want to acomplish.

Alother good place to skim through is the “Utilities Reference” to what
what kind of utilities are available. Then the “Configuration Files”
section of the Utilities Manual.

Good luck and Happy QNX’ing.

Bill Caroselli <qtps@earthlink.net> wrote:

QNX6 also has on-line manuals.

6.3 (which is currently in beta) includes a Neutrino User’s Guide that
describes how to control what happens when Neutrino starts.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems