Enviornment Variables

Is there a way for one process to set enviornment variables, that a
subsequent process can act on?
This is a QNX4 question. I would like one shell script to set some
enviornment varibles so that other processes/scripts will act on them.

Mark

If process will run within same login, just precede script with dot-space
This causes script to run in same environment space instead of a new
shell.
Note that if the script exits/returns instead of just falling through,
then
the calling shell will logout.

If process will run in a different login then:
Better to put them in shared memory,

Optionally echo them out to another script that can be called or read by
another script or program…
echo “export FRED=hi” > /tmp/my_settings
chmod +x /tmp/my_settings

in other script run
. /tmp/my_settings
note preceding dot-space

-Paul

Mark Harris <mhar@dictaphone.com> wrote in message
news:8u9io4$1af$1@inn.qnx.com

Is there a way for one process to set enviornment variables, that a
subsequent process can act on?
This is a QNX4 question. I would like one shell script to set some
enviornment varibles so that other processes/scripts will act on them.

Mark

Normaly no, environment variable are only passed from parent to child.
Paul’s post as some good idea how to get around that.

“Mark Harris” <mhar@dictaphone.com> wrote in message
news:8u9io4$1af$1@inn.qnx.com

Is there a way for one process to set enviornment variables, that a
subsequent process can act on?
This is a QNX4 question. I would like one shell script to set some
enviornment varibles so that other processes/scripts will act on them.

Mark