jhargett
27th October 2005, 16:22
How do I set the DS_AS variable if I am not calling Baan from a client computer but instead a program is starting the bshell?
NPRao
27th October 2005, 19:31
Which program is calling your bshell ?
We use a generic interfacing shell script which is called from the Control-M (job scheduler)
# Set up Controlm environment
if [[ -a $LMS_COMMON/shell_scripts/ctrlm/ctmshell.ksh ]]; then
. $LMS_COMMON/shell_scripts/ctrlm/ctmshell.ksh
else
echo 'Error, runbaan script cannot find ctmshell.ksh'
exit 3
fi
ZDATE=`/usr/bin/date '+%m%d' `
export BSE_LOG=$LMS_VAR/logs/jobs/$COMPANY
export DS_AS=$BSHELL
PATH=$BSE/bin:$PATH
export PATH
#It turned out that the TERM variable could be unset when running in a cron
export TERM=vt100
export BSH_JOB=$OBJECT
export BSH_JOBOK=$BSE_LOG/$BSH_JOB.$$
export BAMODE=1
jhargett
27th October 2005, 19:41
I believe that the Baan program nserver6.1 (used in the Internet java applets) is calling the bshell. So, I can't modify the script to setup variables. I have set an enviroment variable using the OS, but the log for nserver still indicates that DS_AS is not set.
Log:
2005-10-26[15:52:02]:E:root: ******* S T A R T of Error message *******
2005-10-26[15:52:02]:E:root: Log message called from /port.6.1c.04/vobs/tt/internet/netserver/fserver.c: #186 keyword: DS_AS not set
2005-10-26[15:52:02]:E:root: Pid 6231 Uid 630 Euid 630 Gid 125 Egid 125
2005-10-26[15:52:02]:E:root: user_type S language 2 user_name root tty locale ISO88591/NULL
2005-10-26[15:52:02]:E:root: Errno 0 bdb_errno 0
2005-10-26[15:52:02]:E:root: Log_mesg: Connect
2005-10-26[15:52:02]:E:root: ******* E N D of Error message *******