6 echo -n "Searching for a free port for naming service: "
12 aRes=`netstat -ltn | grep -E :${NSPORT}`
13 if [ -z "$aRes" ]; then
15 local myhost=`hostname`
16 export OMNIORB_CONFIG=${HOME}/.omniORB_${myhost}_${NSPORT}.cfg
17 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
24 if [[ "$save_config" == "--save-config" ]] ; then
25 ln -sf $OMNIORB_CONFIG ${HOME}/.omniORB_current.cfg
26 export OMNIORB_CONFIG=${HOME}/.omniORB_current.cfg
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."
43 if [[ "$*" == "-nothing" ]]; then
45 elif [ $# -ne 0 ] ; then
46 python -i ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py $*
48 python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py
51 # -----------------------------------------------------------------------------
54 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome
56 # - parameters for launching are taken from SalomeApp.xml;
57 # - if the config file does not exist, it is created with default values.
60 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome --modules=GEOM,SMESH,VISU,SUPERV,MED --embedded=registry,study,moduleCatalog,cppContainer --standalone=pyContainer,supervContainer --xterm --killall
62 # parameters from command line supersede those from SalomeApp.xml
64 # Some CORBA servers can be launched in the SALOME_Session_Server's process
65 # (embedded = same process) or in a separate process (standalone):
66 # --> registry,study,moduleCatalog,cppContainer
67 # Other CORBA servers could only be launched in separate process (standalone):
68 # --> pyContainer,supervContainer
70 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome -h
72 # -----------------------------------------------------------------------------
74 # l'option -i permet de garder l'interpreteur python ouvert :
75 # par defaut, les differents serveurs ouvrent des fenêtres xterm
77 # le serveur Logger n'est pas obligatoire (commenté dans runSalome.py)
79 # -----------------------------------------------------------------------------