Changeset 9489 for trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
- Timestamp:
- 08/13/09 13:28:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r9456 r9489 38 38 fi 39 39 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 40 if [ "$AUTOMATIONSETUP" = "" ] 41 then 42 echo "Please set the environment variable \$AUTOMATIONSETUP." 43 exit 44 fi 45 46 source `dirname $0`/setup.$AUTOMATIONSETUP 45 47 46 48 datetime=`date +%F-%H-%M-%S` … … 157 159 jmerrorlog=$runlogpath/jobmanager-error`date +%F`.log 158 160 jmscriptlog=$runlogpath/jobmanager`date +%F`.log 159 steps=$mars/resources/steps.rc 161 162 # check if rc-files are available 160 163 if ! ls $steps >/dev/null 161 164 then … … 163 166 finish 164 167 fi 165 sqlrc=$mars/sql.rc166 168 if ! ls $sqlrc >/dev/null 167 169 then … … 169 171 finish 170 172 fi 173 171 174 # resetting values 172 175 pno=0 … … 186 189 # in the following the functions, which are needed by several scripts, are 187 190 # defined 188 189 # function to do continue in a loop and produce according logging190 function cont()191 {192 date193 echo ""194 continue195 }196 191 197 192 # function to check if a process is already locked … … 368 363 then 369 364 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 371 367 fi 372 368 }
Note:
See TracChangeset
for help on using the changeset viewer.