Ignore:
Timestamp:
08/13/09 13:28:51 (15 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/sourcefile

    r9456 r9489  
    3838fi
    3939
    40 source `dirname $0`/setup
    41 
    42 mars=`dirname $0 | sed -e 's/\/datacenter\/scripts//'`
    43 macrospath=$mars/datacenter/macros
    44 scriptspath=$mars/datacenter/scripts
     40if [ "$AUTOMATIONSETUP" = "" ]
     41then
     42   echo "Please set the environment variable \$AUTOMATIONSETUP."
     43   exit
     44fi
     45
     46source `dirname $0`/setup.$AUTOMATIONSETUP
    4547
    4648datetime=`date +%F-%H-%M-%S`
     
    157159jmerrorlog=$runlogpath/jobmanager-error`date +%F`.log
    158160jmscriptlog=$runlogpath/jobmanager`date +%F`.log
    159 steps=$mars/resources/steps.rc
     161
     162# check if rc-files are available
    160163if ! ls $steps >/dev/null
    161164then
     
    163166   finish
    164167fi
    165 sqlrc=$mars/sql.rc
    166168if ! ls $sqlrc >/dev/null
    167169then
     
    169171   finish
    170172fi
     173
    171174# resetting values
    172175pno=0
     
    186189# in the following the functions, which are needed by several scripts, are
    187190# defined
    188 
    189 # function to do continue in a loop and produce according logging
    190 function cont()
    191 {
    192    date
    193    echo ""
    194    continue
    195 }
    196191
    197192# function to check if a process is already locked
     
    368363   then
    369364      printprocesslog "ERROR could not query number of processes from db (program: $program, function getstatus)"
    370       cont
     365      echo `date +%F\ %T`" ERROR could not query number of processes from db (program: $program, function getstatus)"
     366      continue
    371367   fi
    372368}
Note: See TracChangeset for help on using the changeset viewer.