Ignore:
Timestamp:
02/19/09 21:22:19 (16 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r9173 r9355  
    5959}
    6060
    61 
    62 scriptlog=$runlogpath/run$program-$datetime.log
    63 date >> $scriptlog 2>&1
    64 
    6561# get sequence #
    66 gettodo "1">> $scriptlog 2>&1
     62gettodo "1" 
    6763run=${primaries[0]}
    6864# get reflector runnumber
     
    7268# lock sequ
    7369lockfile=$lockpath/lock-$table-$column-$reflectorrunno.txt
    74 checklock >> $scriptlog 2>&1
     70checklock
    7571
    76 echo "run $program for run $run..." >> $scriptlog 2>&1
    7772printprocesslog "INFO starting $program for run $run"
    7873
    79 setstatus "start" >> $scriptlog 2>&1
     74setstatus "start"
    8075
    81 echo "run $program for run $run "
    82 echo "create input card... "
     76printprocesslog "INFO create input card... "
    8377
    8478# get values for inputcard
     
    10094infile=$mcpath"/corsika/"$date"/cer"`printf %06d \`sendquery\``
    10195
    102 echo "" >> $scriptlog 2>&1
    103 echo "INPUTCARD:" >> $scriptlog 2>&1
    104 echo "----------" >> $scriptlog 2>&1
    105 echo "" >> $scriptlog 2>&1
    106 echo "" >> $scriptlog 2>&1
    107 printinputcard >> $scriptlog 2>&1
    108 
    109 makedir $outpath >> $scriptlog 2>&1
     96makedir $outpath
    11097if ls $outfile >/dev/null 2>&1
    11198then
     
    127114
    128115case $check1 in
    129    0)   echo " check1=$check1 -> everything ok " >> $scriptlog 2>&1
    130         printprocesslog "INFO $program finished successfully for run $reflectorrunno"
     116   0)   printprocesslog "INFO $program finished successfully for run $reflectorrunno (check1=$check1)"
    131117        ;;
    132    *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    133         printprocesslog "ERROR $program failed for run $reflectorrunno"
     118   *)   printprocesslog "ERROR $program failed for run $reflectorrunno (check1=$check1)"
    134119        com=$Freflector
    135120        check=$check1
     
    137122esac
    138123
    139 setstatus "stop" >> $scriptlog 2>&1
     124setstatus "stop"
    140125
    141 finish >> $scriptlog 2>&1
     126finish
    142127
Note: See TracChangeset for help on using the changeset viewer.