how can make slinger automatically run

My platform is x86+ QNX6.2.1

for each time I want to start
slinger

I type in terminal as follows:
export HTTPD_ROOT_DIR=/usr/webserver/httpd
export HTTPD_ROOT_DOC=index.shtml
export HTTPD_SCRIPTALIAS=/usr/webserver/cgi
slinger -e -s &
ds &

Is any other method i only need type them in a script or file(like profile)

then they run automatically at time the computer is booting.

Thank you :slight_smile:

to launch an application automatically at startup, you can put the appropriate lines into your ‘rc.local’ file.
the exact path/filename is ‘/etc/rc.d/rc.local’, you can create or edit (if it already exists) it with qnx’s own ped editor (do not use a windows based text editor), and put your lines in.
if you had to create the ‘rc.local’ file out of blank, make sure you do a ‘chmod a+x’ on it afterwards.
good luck, HELGE

I don’t have a rc.local file:(

under rc.d in my QNX
i have
rc.sysinit
rc.setup-once
rc.setup-info
rc.devices

would you please give me a example on how to write a blank rc.local file
Thank you very much

I make my rc.local as follws but it seems not work

is there any thing wrong?

Thank you:)

/usr/sh

Start Slinger

export HTTPD_ROOT_DIR=/usr/webserver/httpd
export HTTPD_ROOT_DOC=index.shtml
export HTTPD_SCRIPTALIAS=/usr/webserver/cgi
/usr/sbin/slinger -e -s &

Start Ds

/usr/sbin/ ds &

make sure /etc/rc.d/rc.local is execuble:

chmod 755 /etc/rc.d/rc.local
or
chmod a+x /etc/rc.d/rc.local

the first line should be

#!/bin/sh

Thanks all of you

With your guides

I successfully solve the problem
on my pc :slight_smile:

I have a further question

what other files do rc.d folder base on for running automatically when boot up

I have a board (x86+embeded qnx OS image),I also want to do automatically run on this board what files should I copy from PC to it

Thank you:)

On my board I built the environment value needed for slinger into .boot image

it makes slinger to run automatically also