Ignore:
Timestamp:
08/22/06 15:36:10 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7909 r7911  
    2828# the datasets.
    2929#
    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.
    3231# Then for each dataset the sequences are extracted from the datasetfile
    3332# and for each sequence the availability of the star files checked by using
     
    8584
    8685   outpath=$logpath/$program/$no
    87    echo "outpath: "$outpath  >> $scriptlog 2>&1
    8886   makedir $outpath  >> $scriptlog 2>&1
    8987   
    90    echo "run $program..." >> $scriptlog 2>&1
    9188   setstatus "start" >> $scriptlog 2>&1
    9289
    9390   for sequence in ${sequences[@]}
    9491   do
     92      echo "run $program for sequence $sequence..." >> $scriptlog 2>&1
    9593
    9694      check1=`root -q -b $macrospath/checkstardone.C+\(\""$sequence\""\) | tee $outpath/checkstardone-$sequence.log | grep int | sed -e 's/(int)//'`
    9795
    9896      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>&1
     97         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
    10199              check="no"
    102100              break
    103101              ;;
    104          0)   echo "check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
     102         0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
    105103              check="no"
    106104              break
    107105              ;;
    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
    110107              com=$Fstardone
    111108              comadd=$sequence
     
    116113   done
    117114   
    118    echo "inserting the status for $program for dataset $dataset into the db" >> $scriptlog 2>&1
    119115   setstatus "stop" >> $scriptlog 2>&1
    120116done
Note: See TracChangeset for help on using the changeset viewer.