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/correcttime

    r7465 r7471  
    8080for run in ${runs[@]}
    8181do
     82  no=`printf %08d $run | cut -c 1-5`
     83  var1=$no
     84  var2=$run
    8285  echo "getting path for run $run ... "
    8386  infile=`find $datapath/rawfiles-wrong-timing/ -name *${run}_[D,C,P,S]_*`
     
    9497 
    9598  check1=0
    96   echo "run $program..."
     99  echo "run $program..." >> $scriptlog 2>&1
     100  setstatus "start" >> $scriptlog 2>&1
     101
    97102  /home/tape/MagicReadout/correct_raw_time $infile $outfile > $timecorrpath/$program-$run.log
    98103  check1=$?
    99104
    100105  case $check1 in
    101      1)   echo "check1=$check1 -> everything ok -> setting status..."
    102           no=`printf %08d $run | cut -c 1-5`
    103           statustime="Now()"
    104           failed="NULL"
    105           starttime="NULL"
    106           failedtime="NULL"
    107           var1=$no
    108           var2=$run
    109           setstatus
    110         ;;
    111      *)   echo "check1=$check1 -> ERROR -> step has to be repeated";;
     106     1)   echo "check1=$check1 -> everything ok -> setting status..." >> $scriptlog 2>&1 ;;
     107     *)   echo "check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1 ;;
     108          com="time correction for run $run failed"
     109          check=$check1
     110          ;;
    112111  esac
     112  echo "inserting the status for $program for run $run into the db" >> $scriptlog 2>&1
     113  setstatus "stop" >> $scriptlog 2>&1
    113114done
    114115
Note: See TracChangeset for help on using the changeset viewer.