3 if [ -z "${KERNEL_ROOT_DIR}" ] ; then
4 export KERNEL_ROOT_DIR=@KERNEL_ROOT_DIR@
6 if [ -z "${CALCULATOR_ROOT_DIR}" ] ; then
7 export CALCULATOR_ROOT_DIR=@prefix@
11 echo -n "Searching for a free port for naming service: "
17 aRes=`netstat -ltn | grep -E :${NSPORT}`
18 if [ -z "$aRes" ]; then
20 local myhost=`hostname`
21 export OMNIORB_CONFIG=${HOME}/.omniORB_${myhost}_${NSPORT}.cfg
22 local initref="NameService=corbaname::"`hostname`":$NSPORT"
23 if [[ `python -c "import CORBA; print CORBA.ORB_ID"` = "omniORB4" ]]; then
24 echo "InitRef = $initref" > $OMNIORB_CONFIG
26 echo "ORBInitRef $initref" > $OMNIORB_CONFIG
31 if [[ $NSPORT -eq $limit ]] ; then
33 echo "Can't find a free port to launch omniNames"
34 echo "Try to kill the running servers and then launch SALOME again."
44 ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python -i $CALCULATOR_ROOT_DIR/bin/salome/myrunSalome.py --modules=CALCULATOR --containers=cpp,python --killall