Hi Bruno.
Maybe our setup can help you.
We have a shared path for software for our lab linux computers.
Each user has this in their .cshrc
source /ourlab2/software/cshrc
The global /ourlab2/software/cshrc contains many variable setup.
For example:
#-----------------------------------------------------------------
# Global shared bin
#-----------------------------------------------------------------
setenv PATH /ourlab2/software/bin:.:${PATH}
#-------------------------------------------------------
# Make users bin files available
#-------------------------------------------------------
setenv PATH {$HOME}/bin:${PATH}:/usr/sbin:/sbin
#-----------------------------------------------------------------
# nmrPipe
#-----------------------------------------------------------------
if (-e /ourlab2/software/nmrPipe/com/
nmrInit.linux9.com) then
setenv NMR_CONT CORRECT_ALL
source /ourlab2/software/nmrPipe/com/
nmrInit.linux9.com
endif
#--------------------------------------------------------------
# Enthought Python distribution
#--------------------------------------------------------------
setenv PATH ${PATH}:/ourlab2/software/python-enthought-dis/epd-7.3-2-rh5-x86_64/bin
alias ipython '/ourlab2/software/python-enthought-dis/epd-7.3-2-rh5-x86_64/bin/ipython'
----------------------
Anyway, we found that some of all these settings made a terrible mess.
And we want to only run qMDD on a machine with 24 cores, computer mr Haddock.
So, it get a little tricky.
The total setup is:
[tlinnet@tomat ~]$ which qMDD
/ourlab2/software/x64/bin/qMDD
cat /ourlab2/software/x64/bin/qMDD
#!/bin/tcsh
######### Check machine
if ( $HOST != "haddock") then
echo "You have to run on haddock. I do it for you"
ssh haddock -Y -t "cd $PWD; qMDD22; /bin/tcsh"
else
qMDD22
endif
We can then easily upgrade to new versions of qMDD, when we
have tested it. And we can call old versions.
Example. qMDD20, qMDD21, qMDD22
tlinnet@haddock ~]$ which qMDD22
/ourlab2/software/x64/bin/qMDD22
We need to unset PYTHONPATH and LD_LIBRARY_PATH,
since they can be messed up from earlier.
Then we set again for Nmrpipe.
Note, there is a soft link ln -s from:
/ourlab2/software/epd ->
/ourlab2/software/python-enthought-dis/epd-7.3-2-rh5-x86_64
Note: the call to the EPD python.
/usr/bin/env /ourlab2/software/epd/bin/python
cat /sbinlab2/software/x64/bin/qMDD22
#!/bin/tcsh
############# Check at set correct PATHS
unsetenv PYTHONPATH
unsetenv LD_LIBRARY_PATH
setenv MDD_NMR /ourlab2/software/mddnmr2.2
setenv MDD_NMRbin ${MDD_NMR}/binLinux64
set path=( $path $MDD_NMRbin ${MDD_NMR}/com )
#Nmrpipe
if (-e /ourlab2/software/nmrPipe/com/
nmrInit.linux9.com) then
setenv NMR_CONT CORRECT_ALL
source /ourlab2/software/nmrPipe/com/
nmrInit.linux9.com
endif
if( ! $?MDDTHREADS && $HOST == "haddock" ) set MDDTHREADS=23
###########################
set gui=1
set i=0
foreach a ($argv)
@ i+=1
if ( $a == 'nogui' ) then
set gui=0
set argv[$i]=''
endif
end
if ( `uname` == 'Linux' ) then
set style='cleanlooks'
else
set style=''
endif
if ( $gui == 1 ) then
set prog=$MDD_NMR/GUI/qMDDGUI.py
/usr/bin/env /ourlab2/software/epd/bin/python $prog $*:q -style $style &
else
set prog=$MDD_NMR/GUI/qMDD.py
/usr/bin/env /ourlab2/software/epd/bin/python $prog $*:q
endif
Troels Emtekær Linnet
2013/7/19 Bruno Vitorge <
bruno....@gmail.com>:
> --
> --
> You received this message because you are subscribed to the Google Groups
> "mddnmr" group.
> To post to this group, send email to
mdd...@googlegroups.com rom your
> registered email address.
> To unsubscribe from this group, send email to
>
mddnmr-un...@googlegroups.com
> For more options, visit this group at
http://groups.google.com/group/mddnmr
>
> ---
> You received this message because you are subscribed to the Google Groups
> "mddnmr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
mddnmr+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>