Changeset 8482 for trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
- Timestamp:
- 05/09/07 17:05:15 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/dodatacheck
r7954 r8482 20 20 # Author(s): Daniela Dorner 08/2004 <mailto:dorner@astro.uni-wuerzburg.de> 21 21 # 22 # Copyright: MAGIC Software Development, 2000-200 622 # Copyright: MAGIC Software Development, 2000-2007 23 23 # 24 24 # … … 36 36 # taken into account when doexclusions is running the next time 37 37 # If this was successful, the status is inserted into the database using 38 # the macro setstatus.C38 # the function setstatus. 39 39 # 40 40 … … 63 63 no=`printf %08d $run | cut -c 0-2` 64 64 no2=`printf %08d $run` 65 var1=$date 66 var2=$no2 67 rawfile=`find /magic/data/rawfiles/ -name *${run}_[D,P,C,S]_*_E.raw -o -name *${run}_[D,P,C,S]_*_E.raw.gz`65 query="SELECT DATE_FORMAT(ADDDATE(fRunStart, INTERVAL +13 HOUR), '%Y/%m/%d') FROM RunData where fRunNumber="$run 66 date=`sendquery` 67 rawfile=`find /magic/data/rawfiles/$date -name *${run}_[D,P,C,S]_*_E.raw -o -name *${run}_[DPCS]_*_E.raw.gz` 68 68 echo "rawfile: "$rawfile >> $scriptlog 2>&1 69 date=`echo $rawfile | cut -c 22-31`70 69 # for sinope the date is needed in the format YYYY-MM-DD 71 70 date2=`echo $date | sed -e 's/\//-/g'` 72 71 72 primvar=$no2 73 73 setstatus "start" >> $scriptlog 2>&1 74 74 … … 113 113 114 114 case $check2 in 115 116 117 118 119 120 # 121 122 123 115 0) echo " check2=$check2 -> everything ok -> go on with $program..." >> $scriptlog 2>&1 116 ;; 117 *) echo " check2=$check2 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 118 printprocesslog "ERROR sinope $sin failed for $rawfile" 119 com=$Fsinope 120 # comadd= 121 check=$check2 122 setstatus "stop" >> $scriptlog 2>&1 123 continue 2;; 124 124 esac 125 125 check2=1 … … 182 182 starttime="NULL" 183 183 failedtime="NULL" 184 var1=$date185 var2=$no2186 184 setstatus "stop" >> $scriptlog 2>&1 187 185
Note:
See TracChangeset
for help on using the changeset viewer.