From e596f99f0ff1846f2a4bbf6cfd0629d25bc8f22e Mon Sep 17 00:00:00 2001 From: rahuel Date: Thu, 9 Feb 2006 15:09:44 +0000 Subject: [PATCH] export and shell syntaxes --- bin/runSalome | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bin/runSalome b/bin/runSalome index 6e7efbc67..970288626 100755 --- a/bin/runSalome +++ b/bin/runSalome @@ -1,8 +1,9 @@ -#!/bin/bash +#!/bin/ksh searchFreePort() { echo -n "Searching for a free port for naming service: " - export NSPORT=2810 + NSPORT=2810 + export NSPORT local limit=$NSPORT let limit=limit+100 while [ 1 ] @@ -11,10 +12,11 @@ searchFreePort() { if [ -z "$aRes" ]; then echo ${NSPORT} - Ok local myhost=`hostname` - export OMNIORB_CONFIG=${HOME}/.omniORB_${myhost}_${NSPORT}.cfg + OMNIORB_CONFIG=${HOME}/.omniORB_${myhost}_${NSPORT}.cfg + export OMNIORB_CONFIG local initref="NameService=corbaname::"`hostname`":$NSPORT" export NSPORT - if [[ `python -c "import CORBA; print CORBA.ORB_ID"` == "omniORB4" ]]; then + if [[ `python -c "import CORBA; print CORBA.ORB_ID"` = "omniORB4" ]]; then echo "InitRef = $initref" > $OMNIORB_CONFIG else echo "ORBInitRef $initref" > $OMNIORB_CONFIG @@ -34,7 +36,7 @@ searchFreePort() { searchFreePort -if [[ "$*" == "-nothing" ]]; then +if [[ "$*" = "-nothing" ]]; then echo "port:$NSPORT" elif [ $# -ne 0 ] ; then python -i ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py $* @@ -71,3 +73,5 @@ fi # le serveur Logger n'est pas obligatoire (commenté dans runSalome.py) # # ----------------------------------------------------------------------------- +# Example on CCRT (without ihm) : +# ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py --terminal --modules=MED,CALCULATOR,COMPONENT --standalone=registry,study,moduleCatalog,cppContainer,pyContainer,supervContainer --killall -- 2.39.2