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

    r9347 r9355  
    111111
    112112
    113 scriptlog=$runlogpath/run$program-$datetime.log
    114 date >> $scriptlog 2>&1
    115 
    116113# get sequence #
    117 gettodo "1" >> $scriptlog 2>&1
     114gettodo "1"
    118115run=${primaries[0]}
    119116# get corsika runno
     
    125122# lock sequ
    126123lockfile=$lockpath/lock-$table-$column-$corsikarunno.txt
    127 checklock >> $scriptlog 2>&1
     124checklock
    128125
    129 echo "run $program for run $run..." >> $scriptlog 2>&1
    130126printprocesslog "INFO starting $program for run $run"
    131127
    132 setstatus "start" >> $scriptlog 2>&1
     128setstatus "start"
    133129
    134 echo "run $program for run $run " >> $scriptlog 2>&1
    135 echo "create input card... " >> $scriptlog 2>&1
     130printprocesslog "INFO run $program for run $run "
     131printprocesslog "INFO create input card... "
    136132
    137133# get values for inputcard
     
    169165diameter=`sendquery`
    170166
    171 echo "" >> $scriptlog 2>&1
    172 echo "INPUTCARD:" >> $scriptlog 2>&1
    173 echo "----------" >> $scriptlog 2>&1
    174 echo "" >> $scriptlog 2>&1
    175 echo "" >> $scriptlog 2>&1
    176 printinputcard >> $scriptlog 2>&1
    177 
    178167logfile=$outpath/$program"-"`printf %06d $corsikarunno`".log"
    179 makedir $outpath >> $scriptlog 2>&1
     168makedir $outpath
    180169
    181170cd $corsikapath
     
    192181
    193182case $check1 in
    194    0)   echo " check1=$check1 -> everything ok " >> $scriptlog 2>&1
    195         printprocesslog "INFO $program finished successfully for corsika run number $corsikarunno"
     183   0)   printprocesslog "INFO $program finished successfully for corsika run number $corsikarunno (check1=$check1)"
    196184        ;;
    197    *)   echo " check1=$check1 -> ERROR -> step has to be repeated" >> $scriptlog 2>&1
    198         printprocesslog "ERROR $program failed for corsika run number $corsikarunno"
     185   *)   printprocesslog "ERROR $program failed for corsika run number $corsikarunno (check1=$check1)"
    199186        com=$Fcorsika
    200187        check=$check1
     
    202189esac
    203190
    204 setstatus "stop" >> $scriptlog 2>&1
     191setstatus "stop"
    205192
    206 finish >> $scriptlog 2>&1
     193finish
    207194
Note: See TracChangeset for help on using the changeset viewer.