3 # Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
4 # PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License.
10 # This library is distributed in the hope that it will be useful
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #log files localization
25 Username=`/usr/bin/whoami`
27 # kill OmniNames if exists
29 #killall -q -9 omniNames
33 mkdir -m 777 ${BaseDir}/logs
34 mkdir ${BaseDir}/logs/${Username}
35 touch ${BaseDir}/logs/${Username}/dummy
36 \rm -f ${BaseDir}/logs/${Username}/omninames* ${BaseDir}/logs/${Username}/dummy ${BaseDir}/logs/${Username}/*.log
38 echo "Name Service... "
39 aSedCommand="s/.*NameService=corbaname::`hostname`:\([[:digit:]]*\)/\1/"
40 aPort=`cat $OMNIORB_CONFIG | grep NameService | sed -e"$aSedCommand"`
41 omniNames -start $aPort -logdir ${BaseDir}/logs/${Username} &
43 # In LifeCycleCORBA, FactoryServer is started with rsh on the requested
44 # computer if this Container does not exist. Default is localhost.
45 # Others Containers are started with start_impl method of FactoryServer Container.
46 # For using rsh it is necessary to have in the ${HOME} directory a .rhosts file
47 # Warning : on RedHat the file /etc/hosts contains by default a line like :
48 # 127.0.0.1 bordolex bordolex.paris1.matra-dtv.fr localhost.localdomain localhost
49 # (bordolex is the station name). omniNames on bordolex will be accessible from other
50 # computers only if the computer name is removed on that line like :
51 # 127.0.0.1 bordolex.paris1.matra-dtv.fr localhost.localdomain localhost
53 # To start dynamically Containers on several computers you need to
54 # put in the ${OMNIORB_CONFIG} file a computer name instead of "localhost"
55 # example : ORBInitRef NameService=corbaname::dm2s0017
57 # If you need to use several omniNames running on the same computer, you have to :
58 #1. put in your ${OMNIORB_CONFIG} file a computer name and port number
59 # example : ORBInitRef NameService=corbaname::dm2s0017:1515
60 #2. start omninames with this port number in runNS.sh
61 # example : omniNames -start 1515 -logdir ${BaseDir}/logs/${Username} &
64 echo "to list contexts and objects bound int the context with the specified name : showNS "