export commands in embedded startup script

Hi,

I’m want to run slinger on an embedded target (Samsung S3C2410).
To pass an environment variable to slinger, I first add
‘export HTTPD_ROOT_DIR=/tmp’
to my startup script - but this fails with ‘Unable to start “export”(2)’.

What am I doing wrong ?

Nick

Can you post your startup script?

-Joe

Nick Horsley <nick.horsley@emsgroup.co.uk> wrote in message
news:ctd941$2ac$1@inn.qnx.com

Hi,

I’m want to run slinger on an embedded target (Samsung S3C2410).
To pass an environment variable to slinger, I first add
‘export HTTPD_ROOT_DIR=/tmp’
to my startup script - but this fails with ‘Unable to start “export”(2)’.

What am I doing wrong ?

Nick

Script is :-

procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2

Initialise the console

devc-sers3c2410ems -e &

reopen

display_msg Welcome to Neutrino on Nick’s SMDK2410 (ARM 920 core) Board
(QNX6.3)

Start some common servers

pipe &

display_msg Starting flash filesystem for Flash 0.

devf-generic -s 0x00000000,16M -r -u2 -b5

display_msg Starting flash filesystem for Flash 1.

devf-generic -s 0x08000000,16M -r -u2 -b5

display_msg Starting LAN91C111 driver. (Using smc9000 driver).

io-net -dsmc9000 verbose=1,iorange=0x10000300,irq=109 -ptcpip

waitfor /dev/io-net/en0

ifconfig en0 192.168.5.100 netmask 255.255.248.0

display_msg Starting qconn for remote debugging.

qconn

display_msg Starting pseudo terminal controller.

devc-pty &

waitfor /dev/fs0p1

display_msg Copying applications to shared mem filesystem.

ksh -c “cp /data/* /dev/shmem”

display_msg Loading OS time from RTC.

rtc -b 0x57000040 s3c2400


display_msg Starting QNX6.3 USB Driver.

io-usb -dohci ioport=0x49000000,irq=26

Start the main shell

display_msg Starting KSH.

[+session] ksh &

devu-prn &

set environment variable so slinger can use cgi scripts

export HTTPD_SCRIPTALIAS=/tmp

export HTTPD_ROOT_DIR=/tmp

slinger -es &

ksh /tmp/StartApp

Nick



“Joe Mammone” <hw@qnx.com> wrote in message news:ctdge3$7cr$1@inn.qnx.com

Can you post your startup script?

-Joe

Nick Horsley <> nick.horsley@emsgroup.co.uk> > wrote in message
news:ctd941$2ac$> 1@inn.qnx.com> …
Hi,

I’m want to run slinger on an embedded target (Samsung S3C2410).
To pass an environment variable to slinger, I first add
‘export HTTPD_ROOT_DIR=/tmp’
to my startup script - but this fails with ‘Unable to start
“export”(2)’.

What am I doing wrong ?

Nick
\

Hi Nick,

set environment variable so slinger can use cgi scripts

export HTTPD_SCRIPTALIAS=/tmp

export HTTPD_ROOT_DIR=/tmp

The bootscript is not a shell script so you can’t use command that are
built-in to the shell.
Set your environment variables as follows:

HTTPD_SCRIPTALIAS=/tmp
HTTPD_ROOT_DIR=/tmp

slinger -es &

ksh /tmp/StartApp

See the bootfiles under /boot/build for and example.

Regards,

Joe