4 echo -n "Searching for a free port for naming service: "
10 aRes=`netstat -ltn | grep -E :${NSPORT}`
11 if [ -z "$aRes" ]; then
13 local myhost=`hostname`
14 export OMNIORB_CONFIG=${HOME}/.omniORB_${myhost}_${NSPORT}.cfg
15 local initref="NameService=corbaname::"`hostname`":$NSPORT"
17 if [[ `python -c "import CORBA; print CORBA.ORB_ID"` == "omniORB4" ]]; then
18 echo "InitRef = $initref" > $OMNIORB_CONFIG
20 echo "ORBInitRef $initref" > $OMNIORB_CONFIG
25 if [[ $NSPORT -eq $limit ]] ; then
27 echo "Can't find a free port to launch omniNames"
28 echo "Try to kill the running servers and then launch SALOME again."
37 if [[ "$*" == "-nothing" ]]; then
39 elif [ $# -ne 0 ] ; then
40 python -i ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py $*
42 python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py
45 # -----------------------------------------------------------------------------
48 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome
50 # - parameters for launching are taken from $HOME/.salome/salome.launch;
51 # - if the config file does not exist, it is created with default values.
54 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome --modules=GEOM,SMESH,VISU,SUPERV,MED --embedded=registry,study,moduleCatalog,cppContainer --standalone=pyContainer,supervContainer --xterm --killall
56 # parameters from command line supersede those from $HOME/.salome/salome.launch
58 # Some CORBA servers can be launched in the SALOME_Session_Server's process
59 # (embedded = same process) or in a separate process (standalone):
60 # --> registry,study,moduleCatalog,cppContainer
61 # Other CORBA servers could only be launched in separate process (standalone):
62 # --> pyContainer,supervContainer
64 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome -h
66 # -----------------------------------------------------------------------------
68 # l'option -i permet de garder l'interpreteur python ouvert :
69 # par defaut, les differents serveurs ouvrent des fenêtres xterm
71 # le serveur Logger n'est pas obligatoire (commenté dans runSalome.py)
73 # -----------------------------------------------------------------------------