Ignore:
Timestamp:
08/25/08 17:29:28 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/copyscript

    r8742 r9131  
    216216#moving the files
    217217file=""
    218 opticalfiles=`find $transdir/optical -name '*.instr'`
     218opticalfiles=`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$'`
    219219for opticalfile in $opticalfiles
    220220do
     
    243243         fi
    244244         ;;
    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 ;;
    253260   esac
    254261done
  • trunk/MagicSoft/Mars/datacenter/scripts/dbchk

    r9128 r9131  
    161161# CHECK 2
    162162echo "Checking if all sequences in Sequences have a corresponding sequence files" >> $scriptlog 2>&1
    163 sequences=`echo SELECT fSequenceFirst FROM Sequences | mymysql`
     163sequences=`echo SELECT fSequenceFirst FROM Sequences left join SequenceProcessStatus using (fSequenceFirst,fTelescopeNumber) where not isnull(fSequenceFileWritten) | mymysql`
    164164for sequence in $sequences
    165165do
Note: See TracChangeset for help on using the changeset viewer.