Changeset 9131 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 08/25/08 17:29:28 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/copyscript
r8742 r9131 216 216 #moving the files 217 217 file="" 218 opticalfiles=`find $transdir/optical - name '*.instr'`218 opticalfiles=`find $transdir/optical -regextype posix-egrep -regex '^$transdir/optical/20[0-9][0-9]_[0-1][0-9]_[0-3][0-9]_.*_[RV][_]?[12]?[.]instr$'` 219 219 for opticalfile in $opticalfiles 220 220 do … … 243 243 fi 244 244 ;; 245 3) echo " checkfilloptical=$checkfilloptical - Error: position of one object is missing in the database" >> $scriptlog 2>&1 246 printprocesslog "ERROR filloptical.C failed for $opticalfile because the position of one object is missing in the database" 247 continue 248 ;; 249 *) echo " checkfilloptical=$checkfilloptical - Error -> go on with next file" >> $scriptlog 2>&1 250 printprocesslog "ERROR filloptical.C failed for $opticalfile" 251 continue 252 ;; 245 3) echo " checkfilloptical=$checkfilloptical - ERROR filloptical.C failed for $opticalfile: position of one object is missing in the database" >> $scriptlog 2>&1 246 printprocesslog "ERROR filloptical.C failed for $opticalfile: position of one object is missing in the database" 247 continue ;; 248 4) echo " checkfilloptical=$checkfilloptical - ERROR filloptical.C failed for $opticalfile: telescope line with more or less than 2 arguments" >> $scriptlog 2>&1 249 printprocesslog "ERROR filloptical.C failed for $opticalfile: telescope line with more or less than 2 arguments" 250 continue ;; 251 5) echo " checkfilloptical=$checkfilloptical - ERROR filloptical.C failed for $opticalfile: timestamp line with more or less than 4 arguments" >> $scriptlog 2>&1 252 printprocesslog "ERROR filloptical.C failed for $opticalfile: timestamp line with more or less than 4 arguments" 253 continue ;; 254 6) echo " checkfilloptical=$checkfilloptical - ERROR filloptical.C failed for $opticalfile: object line with more or less than 8 arguments" >> $scriptlog 2>&1 255 printprocesslog "ERROR filloptical.C failed for $opticalfile: object line with more or less than 8 arguments" 256 continue ;; 257 *) echo " checkfilloptical=$checkfilloptical - ERROR filloptical.C failed for $opticalfile -> go on with next file" >> $scriptlog 2>&1 258 printprocesslog "ERROR filloptical.C failed for $opticalfile (returned $checkfilloptical)" 259 continue ;; 253 260 esac 254 261 done -
trunk/MagicSoft/Mars/datacenter/scripts/dbchk
r9128 r9131 161 161 # CHECK 2 162 162 echo "Checking if all sequences in Sequences have a corresponding sequence files" >> $scriptlog 2>&1 163 sequences=`echo SELECT fSequenceFirst FROM Sequences | mymysql`163 sequences=`echo SELECT fSequenceFirst FROM Sequences left join SequenceProcessStatus using (fSequenceFirst,fTelescopeNumber) where not isnull(fSequenceFileWritten) | mymysql` 164 164 for sequence in $sequences 165 165 do
Note:
See TracChangeset
for help on using the changeset viewer.