BaanDeveloper
10th October 2006, 16:23
This new thread is meant to replace a previous thread introduced yesterday with the title "Where is BSE set?" and hopefully pose a more focused question since the replies generated by the previous post are not producing an answer. When selecting "File", then "Run program..." from the main menu browser and then typing "ksh" with the "Run external program" box checked - a sub shell is started with the prompt "bshell6.1". If i type "echo $BSEA" at this sub shell prompt it does not echo the last two lines in /etc/profile which are as follows a) BSEA=$BSE/application, b) export BSEA. I verified these lines with the command "tail /etc/profile". If i type "env" at this same command prompt I see other environment variables set which leads me to believe that bshell6.1 is being initialized by some other source - can any one direct me where to look. The replies to the previous post seem to re-iterate the need for exporting the environment variable in /etc/profile but this has been verified.
lakoon
11th October 2006, 15:47
Hello
Check what is done in the home direcotry of the user
also have a look at $BSE/lib and $BSE/lib/defaults directory for the file bse_vars
/lakoon
bdittmar
11th October 2006, 18:16
Hello,
if defined a proper .profile in the skel directory, every new created user will get the right environment.
Have a look at the .profile in the user HOME.
.............
BSE=/daten/bse
BSE_TMP=/daten/tmp
HISTFILE=/home/$LOGNAME/.sh_history
HISTSIZE=25
MANPATH=/opt/perl/man:/opt/samba/man:$MANPATH
#PATH=/usr/sbin:/daten/bse/bin:/home/dittbern:/opt/perl/bin:/usr/bin/X11:/usr/bi
n:/usr/local/bin:/opt/splitvt/bin:/opt/dmon/bin:$PATH
#BD 20050221 New Path
PATH=/opt/java1.4/bin:$PATH
export BSE BSE_TMP PATH HISTFILE HISTSIZE
export BSE_SORT=/daten/tmp
...........
Regards
NPRao
11th October 2006, 19:54
Refer to Dave's note in the posting: bse_vars (http://www.baanboard.com/baanboard/showthread.php?t=28201&highlight=bse_vars)
The search path is something like:
1. $BSE/lib/defaults/all
2. $BSE/lib/defaults/db_resource
3. $BSE/lib/defaults/bshell
4. $BSE/lib/user/u<username>
5. $BSE/lib/bse_vars
6. ~/bse_vars
7. $SESSION_TIMEOUT
it will take the last one of those (in sequence) that it finds.
BaanDeveloper
11th October 2006, 21:26
Hello,
I was quite excited about your reply because it introduced the configuration file "bse_vars" along with a potetial search patch. While this file may set vars accessible to the command getenv$() [which i do not know because I am not trying this] - does it work for the procedure I described? I could not get it to work with bse_vars defined in either my home directory "~/bse_vars" or $BSE/lib (which is where i found an existing file and appened the line "BSEA=/xxxx/xxxx/xxxx/application". Did you try it in the way I described and have it work?
Dikkie Dik
23rd October 2006, 12:35
What you ask for is not possible. Calling a ksh will only go through the .profile if it called as root shell (Log on procedure). This is not the case if it is called from BW. You can test this in the following way:
- logon on on on UNIX level
- unset your BSEA (unset BSEA)
- start a new ksh
- check the value of BSEA (echo $BSEA)
kind regards,
Dick