BaanDeveloper
9th October 2006, 16:05
Hello,
My sys admin put BSEA=$BSE/application on the line just under the standard setting BSE=/xxx/xxx/xxx in /etc/profile, however, when I select run from the file menu in the "Menu Browser" then "Run Program" and type in "ksh" with the "run external program checked to access a sub shell - the commane echo $BSEA does not produce the expected result. Where are the environment settings set for sub shells?
Thanks
Mike
Kozure Ohashi
9th October 2006, 17:04
Dear BaanDeveloper,
you have to export the vars (e.g. export bsea), so the subshell knows the variables from the parent shell, otherwise only the current shell nows the variables.
Regards,
Kozure
BaanDeveloper
9th October 2006, 17:11
Hello,
You are correct, however, exporting the variable is already being done to no avail as follows
BSEA=$BSE/application
export BSEA
I suspect that sub shells are reading some other initialization file which this post seeks to find.
Thanks
Mike
Dikkie Dik
9th October 2006, 18:04
What shell is used for the session? And is that the shell you expected. There are so many shells each having there file with variables bash, sh, ksh to name a few.
Kind regards,
Dick
BaanDeveloper
9th October 2006, 18:12
My original question identified "ksh" as the requested sub shell. I had also tried "sh" and "csh" to no avail. Running sub shells in this manner obviously caused Baan to invoke bshell6.1 as this is the prompt shown. What initialization file does bshell6.1 use? Will a reboot of Baan be necessary for it to re-read the changes made in /etc/profile?
litrax
10th October 2006, 13:28
The environment variables are only set in /etc/profile (and in a .profile file in the users home directory). It's not necessary to make any changes in Baan.
Has your Sys- Admin proofed that the Variable BSE is exported before setting the BSEA- variable?
Here is the best way to avoid such problems:
export BSE=/xxx/xxx/xxx
export BSEA=$BSE/application
the commane echo $BSEA does not produce the expected result.
Can you post the output of the command "echo $BSEA"