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"
16 echo "ORBInitRef $initref" > $OMNIORB_CONFIG
20 if [[ $NSPORT -eq $limit ]] ; then
22 echo "Can't find a free port to launch omniNames"
23 echo "Try to kill the running servers and then launch SALOME again."
32 if [ $# -ne 0 ] ; then
33 python -i ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py $*
35 python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py
38 # -----------------------------------------------------------------------------
41 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome
43 # - parameters for launching are taken from $HOME/.salome/salome.launch;
44 # - if the config file does not exist, it is created with default values.
47 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome --modules=GEOM,SMESH,VISU,SUPERV,MED --embedded=registry,study,moduleCatalog,cppContainer --standalone=pyContainer,supervContainer --xterm --killall
49 # parameters from command line supersede those from $HOME/.salome/salome.launch
51 # Some CORBA servers can be launched in the SALOME_Session_Server's process
52 # (embedded = same process) or in a separate process (standalone):
53 # --> registry,study,moduleCatalog,cppContainer
54 # Other CORBA servers could only be launched in separate process (standalone):
55 # --> pyContainer,supervContainer
57 # $: ${KERNEL_ROOT_DIR}/bin/salome/runSalome -h
59 # -----------------------------------------------------------------------------
61 # l'option -i permet de garder l'interpreteur python ouvert :
62 # par defaut, les differents serveurs ouvrent des fenêtres xterm
64 # le serveur Logger n'est pas obligatoire (commenté dans runSalome.py)
66 # -----------------------------------------------------------------------------