3 PYTHON_VERSION=python@PYTHON_VERSION@
5 # you must define SALOME_ROOT_DIR and SALOME_SITE_DIR (if you need it)
7 if test -n $SALOME_ROOT_DIR
9 export PATH=$SALOME_ROOT_DIR/bin/salome:${PATH}
10 export LD_LIBRARY_PATH=$SALOME_ROOT_DIR/lib/salome:${LD_LIBRARY_PATH}
11 export PYTHONPATH=${SALOME_ROOT_DIR}/lib/salome:${SALOME_ROOT_DIR}/lib/$PYTHON_VERSION/site-packages/salome:${SALOME_ROOT_DIR}/share/salome/resources:${PYTHONPATH}
12 # add bin, because some script are in (SALOME_SWIG) !!!!
13 export PYTHONPATH=${SALOME_ROOT_DIR}/bin/salome:${PYTHONPATH}
15 if test -n $SALOME_SITE_DIR
17 export PATH=$SALOME_SITE_DIR/bin/salome:${PATH}
18 export LD_LIBRARY_PATH=$SALOME_SITE_DIR/lib/salome:${LD_LIBRARY_PATH}
19 export PYTHONPATH=${SALOME_SITE_DIR}/lib/salome:${SALOME_SITE_DIR}/lib/$PYTHON_VERSION/site-packages/salome:${SALOME_SITE_DIR}/share/salome/resources:${PYTHONPATH}
22 if test -d $HOME/.salome/bin
24 export PATH=$HOME/.salome/bin:${PATH}
26 if test -d $HOME/.salome/lib
28 export LD_LIBRARY_PATH=$HOME/.salome/lib:${LD_LIBRARY_PATH}
32 export CSF_PluginDefaults=${SALOME_ROOT_DIR}/share/salome/resources
33 export CSF_ResourcesDefaults=${SALOME_ROOT_DIR}/share/salome/resources
35 export CSF_PATHData=${SALOME_ROOT_DIR}/share/salome
41 echo "runSession on ${HOSTNAME}"
47 ./SALOME_Registry_Server --salome_session theSession &
50 ./SALOME_Container FactoryServer &
52 ./SALOME_ContainerPy.py FactoryServerPy &
55 ./SALOME_Container SuperVisionContainer &
60 ./SALOME_ModuleCatalog_Server \
61 -common ${SALOME_ROOT_DIR}/share/salome/resources/CatalogModuleGeneral.xml \
62 -personal ${HOME}/.salome/resources/CatalogModulePersonnel.xml &
65 ./SALOME_Session_Server&
67 notifd -c ${SALOME_ROOT_DIR}/share/salome/resources/channel.cfg -DFactoryIORFileName=/tmp/${LOGNAME}_rdifact.ior -DChannelIORFileName=/tmp/${LOGNAME}_rdichan.ior&
72 if test $1 == "FactoryServer"; then
76 # SALOME_Container usage: runSession SALOME_Container ServerName -ORBInitRef NameService=corbaname::hostname:tcpipPortNumber [/usr/bin/gdb]
77 # if it is a python container ServerName must be ended by 'Py'
79 echo "Starting ${SALOME_ROOT_DIR}/bin/salome/$1 $2 $3 $4 with debugger on ${HOSTNAME}"
80 echo "Type : run $2 $3 $4"
81 $5 ${SALOME_ROOT_DIR}/bin/salome/$1
84 echo "Starting ${SALOME_ROOT_DIR}/bin/salome/$1 $2 $3 $4 on ${HOSTNAME}"
85 ${SALOME_ROOT_DIR}/bin/salome/$1 $2 $3 $4 &
88 echo "Starting $1 $2 $3 on ${HOSTNAME}"
92 echo "Starting $1 $2 on ${HOSTNAME}"
96 echo "Starting $1 $2 on ${HOSTNAME}"