3
# Assign the necessary logical names for Midas
4
# needed for the Unix command `drs'
5
# Klaus Banse ESO - DMD 000503
9
#**************************************************************************
12
# Modify the default values of MIDASHOME0 and MIDVERS0
13
# accordingly to your site.
18
# Environment variables MIDASHOME and MIDVERS overwrite the defaults above
20
#**************************************************************************
25
# If MIDASHOME variable not defined then set to default.
27
if [ -z "$MIDASHOME" ]; then
28
MIDASHOME="$MIDASHOME0"; export MIDASHOME
32
# If MIDVERS variable not defined then set to default.
34
if [ -z "$MIDVERS" ]; then
35
MIDVERS="$MIDVERS0"; export MIDVERS
39
# Check access to directories and files
41
if [ ! -d $MIDASHOME/$MIDVERS ]; then
42
echo "$MIDASHOME/${MIDVERS}: not such directory."
43
echo "Call your MIDAS operator. EXIT."
48
# if necessary create MIDAS work directory
50
if [ -z "$MID_WORK" ]; then
51
MID_WORK=$HOME/midwork/ ; export MID_WORK
55
# get all the variables (logical names)
57
if [ -f $MIDASHOME/$MIDVERS/monit/midlogs.sh ]; then
58
. $MIDASHOME/$MIDVERS/monit/midlogs.sh
60
echo "$MIDASHOME/$MIDVERS/monit/midlogs.sh not such file."
61
echo "Call your MIDAS operator. EXIT."
66
# Catch any possible interrupt and remove the lock file
71
# Set PATH for shared libraries
76
if [ -z "$LD_LIBRARY_PATH" ] ; then
77
LD_LIBRARY_PATH=$MIDASHOME/$MIDVERS/lib
79
LD_LIBRARY_PATH=$MIDASHOME/$MIDVERS/lib:$LD_LIBRARY_PATH
81
export LD_LIBRARY_PATH
84
if [ -z "$SHLIB_PATH" ] ; then
85
SHLIB_PATH=$MIDASHOME/$MIDVERS/lib
87
SHLIB_PATH=$MIDASHOME/$MIDVERS/lib:$SHLIB_PATH
97
DAZUNIT=01; export DAZUNIT # must be 01 ...
98
MIDAS_OUTSIDE=YES; export MIDAS_OUTSIDE
99
$MID_MONIT/qreqa.exe $*