#!/bin/bash #bash script mg-hybrid.bash #we have renamed binary executable mg-hybrid.exe V1.3.0 as mg-hybrid.exe_Linux_64_juillet2014 #to assume call of other beta-versions of distene mg-hybrid.exe code in standalone plugin HYBRIDPLUGIN sources #and also assume licence file set to overriding licence file of other distene products ( HEXOTIC, GHS3D, etc... ) #all that for for only one call of mg-hybrid.bash from salome plugin HYBRIDPLUGIN #echo "mg-hybrid.bash initial parameters are:" $1 $2 $3 $4 echo "mg-hybrid.bash initial parameters are:" $* #$0 is ignored if [[ $HOSTNAME == *hpcspot* ]] then HOST="hpcspot" else HOST="STANDART_CentOs6" #CentOs6 default fi echo "HOST" $HOST #we need to licence for mg-hybrid.exe if [ $HOST == "hpcspot" ] then #env openmpi centos6.5 hpcspot.com export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR" export DLIM8VAR="dlim8 1:1:29030@10.27.51.1/002590c96d98::8fbdc02cde090ca0369ad028e839065b97709e3c33e640eb6a3c2c7e40fe3985" else export DISTENE_LICENSE_FILE="Use global envvar: DLIM8VAR" export DLIM8VAR="dlim8 1:1:29030@132.166.151.49/84c419b8::87af196ab2a936ab31363624539bff8096fbe1f3c83028c8f6b399b0a904ef85" fi echo "mg-hybrid.bash juillet2014 assume licence file set:" env | grep DLIM #mg-hybrid.exe_Linux_64_avril2014 --help #mg-hybrid.exe_Linux_64_avril2014 $* mg-hybrid.exe_Linux_64_juillet2014 $* #ldd `which mg-hybrid.exe_Linux_64_avril2014` # linux-vdso.so.1 => (0x00007fff3bfff000) # libpthread.so.0 => /lib64/libpthread.so.0 (0x000000358b400000) # libm.so.6 => /lib64/libm.so.6 (0x000000358a800000) # libc.so.6 => /lib64/libc.so.6 (0x000000358ac00000) # /lib64/ld-linux-x86-64.so.2 (0x000000358a400000)