Changeset 7460 for trunk/MagicSoft/Mars/datacenter/scripts/fillstar
- Timestamp:
- 01/10/06 22:12:58 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/fillstar
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 of star into the db 28 # for 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 star results are filled 33 # into the table Star in the database using the macro fillstar.C 34 # If this was successful, the status is inserted into the database using 35 # the macro setstatus.C 27 36 # 28 37 … … 52 61 cd $mars 53 62 63 # check if the script is already running 54 64 date > $lockpath/lock-$table-$column.txt >> $scriptlog 2>&1 55 65 checklock0=$? … … 63 73 esac 64 74 75 # get todo list 65 76 echo "getting list..." >> $scriptlog 2>&1 66 77 check0=`root -q -b $macrospath/getdolist.C+\("\"$table\""\,"\"$column\""\,"\"$date\""\,"\"$listpath\""\) | tee $getstatuslog | grep int | sed -e 's/(int)//'` … … 68 79 case $check0 in 69 80 1) echo "check0=$check0 -> everything ok -> run fillstar" >> $scriptlog 2>&1;; 70 *) echo "check0=$check0 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1;; 81 *) echo "check0=$check0 -> ERROR -> could not get list -> exit" >> $scriptlog 2>&1 82 rm -v $todofile >> $scriptlog 2>&1 83 rm -v $lockpath/lock-$table-$column.txt >> $scriptlog 2>&1 84 date >> $scriptlog 2>&1 85 exit;; 71 86 esac 72 87 88 # retrieve sequences from todo file 73 89 sequences=(`cat $todofile`) 74 75 90 if [ "$sequences" = "" ] 76 91 then … … 82 97 fi 83 98 99 # run fillstar for sequences 84 100 echo "sequences: "${sequences[@]} >> $scriptlog 2>&1 85 86 101 for sequence in ${sequences[@]} 87 102 do
Note:
See TracChangeset
for help on using the changeset viewer.