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
  • TabularUnified trunk/MagicSoft/Mars/datacenter/scripts/mcsequences

    r9225 r9355  
    3737set -C
    3838
    39 scriptlog=$runlogpath/$program-$datetime.log
    40 date >> $scriptlog 2>&1
    41 
    4239# check if script is already running
    4340lockfile=$lockpath/lock-$program.txt
    44 checklock  >> $scriptlog 2>&1
     41checklock
    4542                                             
    4643# find montecarlo directories, build two sequences per directory and write sequence files
     
    5855      continue
    5956   fi
    60    echo $dir >> $scriptlog 2>&1
     57   printprocesslog "INFO dir: "$dir
    6158   
    6259   epochs=`ls -l $mcpath/camera | cut -c 52-80`
    6360   for epoch in ${epochs[@]}
    6461   do
    65       echo $epoch >> $scriptlog 2>&1
     62      printprocesslog "INFO epoch: "$epoch
    6663      calfile=`find $dir -lname *${epoch}/*.root | grep "_C_"`
    6764      pedfile=`find $dir -lname *${epoch}/*.root | grep "_P_"`
     
    140137            trainno=`echo $firstruntrain | cut -c 0-4`
    141138            trainsequpath=$mcsequpath/$trainno
    142             makedir $trainsequpath >> $scriptlog 2>&1
     139            makedir $trainsequpath
    143140            trainsequfile=$trainsequpath/sequence$firstruntrain.txt
    144             echo "writing train sequfile "$trainsequfile >> $scriptlog 2>&1
    145141            printprocesslog "INFO writing train sequencefile $trainsequfile"
    146142   
     
    205201            testno=`echo $firstruntest | cut -c 0-4`
    206202            testsequpath=$mcsequpath/$testno
    207             makedir $testsequpath >> $scriptlog 2>&1
     203            makedir $testsequpath
    208204            testsequfile=$testsequpath/sequence$firstruntest.txt
    209             echo "writing test sequfile "$testsequfile >> $scriptlog 2>&1
    210205            printprocesslog "INFO writing test sequencefile $testsequfile"
    211206   
     
    227222done
    228223
    229 finish >> $scriptlog 2>&1
    230 
     224finish
     225
Note: See TracChangeset for help on using the changeset viewer.