Ignore:
Timestamp:
08/25/06 22:09:49 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7938 r7944  
    3737#
    3838
     39source `dirname $0`/sourcefile
     40printprocesslog "INFO starting $0"
    3941program=callisto
    40 source `dirname $0`/sourcefile
     42column=fCallisto
    4143
    4244set -C
    4345
    44 # define callisto.rc files
    45 callistorcnew=$setuppath/$program/callisto.rc
    46 callistorcmarapr05=$setuppath/$program/callisto_MarApr05.rc
    47 
    48 column=fCallisto
    49 #pno=500 # number of processes, i.e. number of todo-files
    50 
    51 scriptlogpath=$runlogpath/$program
    52 makedir $scriptlogpath
    53 scriptlog=$scriptlogpath/run$program-$datetime.log
    54 
     46scriptlog=$runlogpath/run$program-$datetime.log
    5547date >> $scriptlog 2>&1
    5648
     
    6759# run calibration for sequence
    6860echo "run $program for sequence $sequence..." >> $scriptlog 2>&1
     61printprocesslog "INFO starting $program for sequence $sequence"
    6962no=`printf %08d $sequence | cut -c 0-4`
    7063no2=`printf %08d $sequence`
     
    7366outpath="$datapath/$program/$no/$no2"
    7467makedir $outpath >> $scriptlog 2>&1
    75 
    7668sequfile="$sequpath/$no/sequence$no2.txt"
    7769
     70# define callisto.rc files
     71callistorcnew=$setuppath/$program/callisto.rc
     72callistorcmarapr05=$setuppath/$program/callisto_MarApr05.rc
    7873# find callisto.rc file
    7974if [ -e $outpath/callisto.rc ]
     
    9994case $check1 in
    10095   0)   echo " check1=$check1 -> everything ok -> doing update..." >> $scriptlog 2>&1
     96        printprocesslog "INFO $program finished successfully for sequence $sequence"
    10197        # running merpp update if calibration worked
    10298        # finding files, which have to be updated
     
    113109        makedir $merpplogpath >> $scriptlog 2>&1
    114110       
     111        printprocesslog "INFO doing merppupdate for sequence $sequence"
    115112        # updated calibrated data files with the information from the cc and caco files
    116113        for calfile in ${calfiles[@]}
     
    127124           then
    128125              echo "no ccfile found for run "$runno >> $scriptlog 2>&1
     126              printprocesslog "ERROR  no ccfile found for $calfile"
    129127              com=$Fnoccfile
    130128              comadd=$runno
     
    163161           check2=$?
    164162           case $check2 in
    165                    0)   echo " check2=$check2 -> everything ok, merppccupdate worked -> continue" >> $scriptlog 2>&1;;
    166              *)   echo " check2=$check2 -> ERROR -> merppccupdate failed" >> $scriptlog 2>&1
     163                   0)   echo " check2=$check2 -> everything ok, merppccupdate worked -> continue" >> $scriptlog 2>&1
     164                        printprocesslog "INFO merppupdated $calfile sucessfully with $ccfile"
     165                        ;;
     166                   *)   echo " check2=$check2 -> ERROR -> merppccupdate failed" >> $scriptlog 2>&1
     167                        printprocesslog "ERROR merppccupdate failed for $calfile"
    167168                        com=$Fmerppcc
    168169                        comadd=$runno
     
    173174           check3=$?
    174175           case $check3 in
    175                    0)   echo " check3=$check3 -> everything ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1;;
    176              *)   echo " check3=$check3 -> ERROR -> merppcacoupdate failed" >> $scriptlog 2>&1
     176                   0)   echo " check3=$check3 -> everything ok, merppcacoupdate worked -> continue" >> $scriptlog 2>&1
     177                        printprocesslog "INFO merppupdated $calfile sucessfully with $cacofile"
     178                        ;;
     179                   *)   echo " check3=$check3 -> ERROR -> merppcacoupdate failed" >> $scriptlog 2>&1
     180                        printprocesslog "ERROR merppcacoupdate failed for $calfile"
    177181                        com=$Fmerppcaco
    178182                        comadd=$runno
     
    183187          ;;
    184188   *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
     189        printprocesslog "ERROR $program failed for sequence $sequence"
    185190        com=$Fcallisto
    186191        check=$check1
Note: See TracChangeset for help on using the changeset viewer.