CORBA 2.3.7 Programmer's Guide for Java
environments, see the TS/MP System Management Manual (note that in TS/MP documentation, server pools are called
server classes). The following sample OSS script illustrates how the environment might be configured:
In the following script, the trace settings have been disabled by placing the comment character open bracket [ in front of
the line. For more information about tracing see Tracing and Debugging Applications.
#
# Bank server PATHMON start-up and configuration script.
#
export PATHMON=jsmn
export SERVER_CLASS=BANK-SERVER
# When HOMETERM env variable is set the script used to fail.
# The format of the HOMETERM set will be checked for $<Telservname>.<Term>,
# if it is not of the required format then it will use the default
# HOMETERM set using who -m command
DEFAULT=$(echo $HOMETERM | awk -F "." '{ print (($1 ~ /^[$][A-Za-z0-9]+/) && ($2 ~
/^[#][A-Za-z0-9]+/));}')
if [[ $DEFAULT -eq 0 ]]; then
if [[ -n "$HOMETERM" ]] then
print "Warning: The HOMETERM set externally is not of the format
$<TelServName>.#<Term>."
print "Proceeding with the Default Term."
fi
X=$(who -m)
CNT=$((1))
for i in $X; do
if ((CNT==2))
then
O_HOMETERM=$i
break
fi
((CNT+=1))
done
HOMETERM=$(basename $O_HOMETERM)
TCP_PROCESS=$(basename $(dirname $O_HOMETERM))
G_HOMETERM=\$$TCP_PROCESS.$HOMETERM
SLEEP_TIME=10000
else
# strip "." and "$" from HOMETERM to set the OSS HOMETERM
O_HOMETERM=/G/$(echo $HOMETERM | sed 's/\./\//')
O_HOMETERM=$(echo $O_HOMETERM | sed 's/\$//')
G_HOMETERM=$HOMETERM
SLEEP_TIME=0
fi
# The script is modified to use "gtacl -c" instead of "gtacl -p"
# as using "gtacl -p" with nowait option does not allow the child
# process to properly open the output file.