estotz
6th April 2004, 00:45
Has anyone successfully used the BSE_LOG variable to redirect the log.bshell output to another file?
We are using Baan5c on7.1d.04 porting set and output goes to the usual log.bshell file instead of what I have in the set command of my client.
Using the following set command:
-- -set BSE_LOG=/home/bsp/fred77
putting the file name in quotes does not make a difference. Any and all ideas welcome.
Thanks
Eric
marnix
6th April 2004, 09:58
Originally posted by estotz
Has anyone successfully used the BSE_LOG variable to redirect the log.bshell output to another file?
The BSE_LOG environment variable is the name of a *directory*, which then replaces the usual $BSE/log directory.
Hitesh Shah
6th April 2004, 10:30
The bshell messages are directed to log.<bshell> where bshell is the bsehll name in BW configuration . So for example if u have bshell name in BWC as bshell1 and in ur ipc_info bshell1 is defined properly to invoke bshell6.1 , then log messages are generated to log.bshell1 and not log.bshell for that particular user.
Though I have not tested changing BSE_LOG , changing this value will point to the directory where log messages are to be generated.
estotz
8th April 2004, 20:14
I guess the bshell naming will work for our needs. I still could not get the BSE_LOG environment variable to work on a directory. We are on the latest porting set and service pack for Baan5c so not sure what the problem is.
A log.informix file does get created in the BSE_LOG directory if I try to redirect from the norm, but no bshell errors get logged in that directory. They still go to the regular $BSE/log.
NPRao
16th July 2004, 01:29
Eric,
It didnt work from the worktop options for me. But we have job shell scripts which set environment variables where it is working.
# Set Standard Baan Environment
if [[ -a /app/lms/${ENV}/opt/bin/lms_env_cfg.sh ]]; then
. /app/lms/${ENV}/opt/bin/lms_env_cfg.sh
else
echo "Error, can't find lms_env_cfg.sh"
exit 2
fi
BSE_LOG=/app/lms/${ENV}/var/logs/jobs/$COMPANY
export BSE BSE_LOG
PATH=$BSE/bin:$PATH
export PATH
export TERM=vt100
export BAMODE=1
[DEV:bsp]/app/lms/lmss/var/logs/jobs/010>ll log.b*
-rw-rw-rw- 1 bsp010s bsp 0 May 6 14:00 log.ba6.2
-rw-rw-rw- 1 bsp010s bsp 0 May 6 14:00 log.bshell_lmssctlm
-rw-rw-rw- 1 bsp010s bsp 678 Jun 17 11:01 log.bshell_lmssmbni
-rw-rw-rw- 1 bsp010s bsp 119141 Jul 15 13:58 log.bshell_lmssmulti
[DEV:bsp]/app/lms/lmss/var/logs/jobs/010>