Changeset 7460 for trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
- Timestamp:
- 01/10/06 22:12:58 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillcallisto
r7265 r7460 20 20 # Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 422 # Copyright: MAGIC Software Development, 2000-2006 23 23 # 24 24 # 25 25 # ======================================================================== 26 26 # 27 # This script launches the filling of the results from the calibration for 28 # all sequences of which the results are not yet in the database. 29 # 30 # After checking, if the script is already running, the todolist is 31 # written by using the macro getdolist.C 32 # Then for each sequence in the todo list the calibration results are 33 # filled into the table Calibration in the database using the macros 34 # fillcalib.C and fillsignal.C 35 # If this was successful, the status is inserted into the database using 36 # the macro setstatus.C 27 37 # 28 38 … … 44 54 scriptlogpath=$logpath/run/fillcallisto/`date +%Y/%m/%d` 45 55 makedir $scriptlogpath 46 47 56 scriptlog=$scriptlogpath/runfillcallisto-$datetime.log 48 57 … … 53 62 cd $mars 54 63 64 # check if the script is already running 55 65 date > $lockpath/lock-$table-$column.txt >> $scriptlog 2>&1 56 66 checklock0=$? … … 64 74 esac 65 75 76 # get todo file 66 77 echo "getting list..." >> $scriptlog 2>&1 67 78 check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'` … … 69 80 case $check0 in 70 81 1) echo "check0=$check0 -> everything ok -> run fillcallisto" >> $scriptlog 2>&1;; 71 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 82 *) echo "check0=$check0 -> ERROR -> could not get list -> exit" >> $scriptlog 2>&1 83 rm -v $todofile >> $scriptlog 2>&1 84 rm -v $lockpath/lock-$table-$column.txt >> $scriptlog 2>&1 85 date >> $scriptlog 2>&1 86 exit;; 72 87 esac 73 88 74 89 sequences=(`cat $todofile`) 75 76 90 if [ "$sequences" = "" ] 77 91 then … … 83 97 fi 84 98 99 # fill information into the database for all sequences in the todo file 85 100 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 86 87 101 for sequence in ${sequences[@]} 88 102 do
Note:
See TracChangeset
for help on using the changeset viewer.