]> SALOME platform Git repositories - plugins/hybridplugin.git/blob - bin/mg-hybrid.bash
Salome HOME
mg-hybrid.exe_Linux_64_juillet2014 et maj doc
[plugins/hybridplugin.git] / bin / mg-hybrid.bash
1 #!/bin/bash
2
3 #bash script mg-hybrid.bash
4 #we have renamed binary executable mg-hybrid.exe V1.3.0 as mg-hybrid.exe_Linux_64_juillet2014
5 #to assume call of other beta-versions of distene mg-hybrid.exe code in standalone plugin HYBRIDPLUGIN sources
6 #and also assume licence file set to overriding licence file of other distene products ( HEXOTIC, GHS3D, etc... )
7 #all that for for only one call of mg-hybrid.bash from salome plugin HYBRIDPLUGIN
8
9 #echo "mg-hybrid.bash initial parameters are:" $1 $2 $3 $4 
10 echo "mg-hybrid.bash initial parameters are:" $*
11 #$0 is ignored
12
13 if [[ $HOSTNAME == *hpcspot* ]]
14   then
15     HOST="hpcspot"
16   else
17     HOST="STANDART_CentOs6" #CentOs6 default
18 fi
19 echo "HOST" $HOST
20
21 #we need to licence for mg-hybrid.exe
22 if [ $HOST == "hpcspot" ]
23   then
24     #env openmpi centos6.5 hpcspot.com
25     export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR"
26     export DLIM8VAR="dlim8 1:1:29030@10.27.51.1/002590c96d98::8fbdc02cde090ca0369ad028e839065b97709e3c33e640eb6a3c2c7e40fe3985"
27   else
28     export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR"
29     export DLIM8VAR="dlim8 1:1:29030@132.166.151.49/84c419b8::87af196ab2a936ab31363624539bff8096fbe1f3c83028c8f6b399b0a904ef85"
30 fi
31
32 echo "mg-hybrid.bash juillet2014 assume licence file set:"
33 env | grep DLIM
34
35 #mg-hybrid.exe_Linux_64_avril2014 --help
36 #mg-hybrid.exe_Linux_64_avril2014 $*
37 mg-hybrid.exe_Linux_64_juillet2014 $*
38
39 #ldd `which mg-hybrid.exe_Linux_64_avril2014`
40 #       linux-vdso.so.1 =>  (0x00007fff3bfff000)
41 #       libpthread.so.0 => /lib64/libpthread.so.0 (0x000000358b400000)
42 #       libm.so.6 => /lib64/libm.so.6 (0x000000358a800000)
43 #       libc.so.6 => /lib64/libc.so.6 (0x000000358ac00000)
44 #       /lib64/ld-linux-x86-64.so.2 (0x000000358a400000)
45