Ignore:
Timestamp:
02/01/06 18:04:43 (19 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7465 r7471  
    103103   no=`printf %08d $sequence | cut -c 0-4`
    104104   no2=`printf %08d $sequence`
     105   var1=$no
     106   var2=$no2
    105107   outpath=$logpath/$program/$no
    106108   echo "outpath: "$outpath  >> $scriptlog 2>&1
     
    109111   sequencefile=$sequpath/$no/sequence$no2.txt
    110112
     113   echo "run $program..." >> $scriptlog 2>&1
     114   setstatus "start" >> $scriptlog 2>&1
     115
    111116   check1=`root -q -b $macrospath/checkfileavail.C+\(\""$sequencefile\""\) | tee $outpath/checkfileavail-$sequence.log | grep int | sed -e 's/(int)//'`
    112117
    113118   case $check1 in
    114       1)   echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1
    115            statustime="Now()"
    116            failed="NULL"
    117            starttime="NULL"
    118            failedtime="NULL"
    119            var1=$no
    120            var2=$sequence
    121            setstatus
    122            ;;
    123       *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;;
     119      1)   echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;;
     120      *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     121           com="checking availability of files for sequence $sequence failed"
     122           check=$check1
     123           ;;
    124124   esac
     125
     126   echo "inserting the status for $program for sequence $sequence into the db" >> $scriptlog 2>&1
     127   setstatus "stop" >> $scriptlog 2>&1
    125128done
    126129
Note: See TracChangeset for help on using the changeset viewer.