4 echo -n "Searching for a free port for naming service: "
11 aRes=`netstat -ltn | grep -E :${NSPORT}`
12 if [ -z "$aRes" ]; then
14 local myhost=`hostname`
15 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
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."
39 if [[ "$*" = "-nothing" ]]; then
41 elif [ $# -ne 0 ] ; then
42 python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py $*
44 python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py
47 # -----------------------------------------------------------------------------
50 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome
52 # - parameters for launching are taken from SalomeApp.xml;
53 # - if the config file does not exist, it is created with default values.
56 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome --modules=GEOM,SMESH,VISU,SUPERV,MED --embedded=registry,study,moduleCatalog,cppContainer --standalone=pyContainer,supervContainer --xterm --killall
58 # parameters from command line supersede those from SalomeApp.xml
60 # Some CORBA servers can be launched in the SALOME_Session_Server's process
61 # (embedded = same process) or in a separate process (standalone):
62 # --> registry,study,moduleCatalog,cppContainer
63 # Other CORBA servers could only be launched in separate process (standalone):
64 # --> pyContainer,supervContainer
66 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome -h
68 # -----------------------------------------------------------------------------
70 # l'option -i permet de garder l'interpreteur python ouvert :
71 # par defaut, les differents serveurs ouvrent des fenêtres xterm
73 # le serveur Logger n'est pas obligatoire (commenté dans runSalome.py)
75 # -----------------------------------------------------------------------------
76 # Example on CCRT (without ihm) :
77 # ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py --terminal --modules=MED,CALCULATOR,COMPONENT --standalone=registry,study,moduleCatalog,cppContainer,pyContainer,supervContainer --killall