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