Salome HOME
NRI : Explode OCC_LIBS.
[modules/yacs.git] / bin / runNSWithPort.sh
1 #!/bin/sh
2
3 #log files localization
4
5 BaseDir=/tmp
6 Username=`/usr/bin/whoami`
7
8 # kill OmniNames if exists
9
10 #killall -q -9 omniNames
11
12 # clear log files
13
14 mkdir -m 775 ${BaseDir}/logs 
15 mkdir ${BaseDir}/logs/${Username}
16 touch ${BaseDir}/logs/${Username}/dummy
17 \rm -f ${BaseDir}/logs/${Username}/omninames* ${BaseDir}/logs/${Username}/dummy ${BaseDir}/logs/${Username}/*.log
18
19 echo "Name Service... "
20
21 omniNames -start $1 -logdir ${BaseDir}/logs/${Username} &
22
23 # In LifeCycleCORBA, FactoryServer is started with rsh on the requested
24 #    computer if this Container does not exist. Default is localhost.
25 #    Others Containers are started with start_impl of FactoryServer Container.
26
27 # To start dynamically Containers on several computers you need to :
28 #1. define your ~/.omniORB.cfg file with a computer name and port number
29 # example : ORBInitRef NameService=corbaname::dm2s0017:1515
30 #2. start omninames with this port number in runNS.sh
31 # example : omniNames -start 1515 -logdir ${BaseDir}/logs/${Username} &
32
33 echo ok
34 echo "to list contexts and objects bound int the context with the specified name : showNS "