Changeset 7911 for trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
- Timestamp:
- 08/22/06 15:36:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/checkstardone
r7909 r7911 28 28 # the datasets. 29 29 # 30 # After checking, if the script is already running, the todolist is 31 # written 30 # After checking if the script is already running the todolist is written. 32 31 # Then for each dataset the sequences are extracted from the datasetfile 33 32 # and for each sequence the availability of the star files checked by using … … 85 84 86 85 outpath=$logpath/$program/$no 87 echo "outpath: "$outpath >> $scriptlog 2>&188 86 makedir $outpath >> $scriptlog 2>&1 89 87 90 echo "run $program..." >> $scriptlog 2>&191 88 setstatus "start" >> $scriptlog 2>&1 92 89 93 90 for sequence in ${sequences[@]} 94 91 do 92 echo "run $program for sequence $sequence..." >> $scriptlog 2>&1 95 93 96 94 check1=`root -q -b $macrospath/checkstardone.C+\(\""$sequence\""\) | tee $outpath/checkstardone-$sequence.log | grep int | sed -e 's/(int)//'` 97 95 98 96 case $check1 in 99 1) echo " check1=$check1 -> everything ok -> continue with next sequence..." >> $scriptlog 2>&1 ;;100 2) echo " check1=$check1 -> files for sequence $sequence not yet available -> continue..." >> $scriptlog 2>&197 1) echo " check1=$check1 -> everything ok -> continue with next sequence..." >> $scriptlog 2>&1 ;; 98 2) echo " check1=$check1 -> files for sequence $sequence not yet available -> continue..." >> $scriptlog 2>&1 101 99 check="no" 102 100 break 103 101 ;; 104 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1102 0) echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1 105 103 check="no" 106 104 break 107 105 ;; 108 *) echo "check1=$check1 -> ERROR " >> $scriptlog 2>&1 109 echo "starfiles not available for sequence -> continue" >> $scriptlog 2>&1 106 *) echo " check1=$check1 -> ERROR " >> $scriptlog 2>&1 110 107 com=$Fstardone 111 108 comadd=$sequence … … 116 113 done 117 114 118 echo "inserting the status for $program for dataset $dataset into the db" >> $scriptlog 2>&1119 115 setstatus "stop" >> $scriptlog 2>&1 120 116 done
Note:
See TracChangeset
for help on using the changeset viewer.