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

    r9113 r9355  
    4141column=fDataSetFileWritten
    4242
    43 scriptlog=$runlogpath/$program-$datetime.log
    44 date >> $scriptlog 2>&1
    45 
    4643# check if script is already running
    4744lockfile=$lockpath/lock-$program.txt
    48 checklock  >> $scriptlog 2>&1
     45checklock
    4946
    5047# get todo list
    51 gettodo  >> $scriptlog 2>&1
     48gettodo
    5249
    5350cd $mars
     
    5653do
    5754   dataset=${primaries[$s]}
    58    echo "writing dataset file for dataset $dataset..." >> $scriptlog 2>&1
    5955   printprocesslog "INFO writing datasetfile for dataset $dataset"
    6056   no=`printf %08d $dataset | cut -c 0-5`
    6157   no2=`printf %08d $dataset`
    6258   datasetpathcpl=$datasetpath/$no
    63    makedir $datasetpathcpl >> $scriptlog 2>&1
     59   makedir $datasetpathcpl
    6460   writedatasetfilelogpath=$logpath/$program/$no
    65    makedir $writedatasetfilelogpath >> $scriptlog 2>&1
     61   makedir $writedatasetfilelogpath
    6662   logfile=$writedatasetfilelogpath/$program-$no2.log
    6763
    68    setstatus "start" >> $scriptlog 2>&1
     64   setstatus "start"
    6965   
    7066   check1=`root -q -b $macrospath/writedatasetfile.C+\($dataset\,\""$datasetpathcpl\""\) | tee $logfile | intgrep`
    7167
    7268   case $check1 in
    73       1)   echo " check1=$check1 -> everything ok" >> $scriptlog 2>&1
    74            printprocesslog "INFO wrote datasetfile for dataset $dataset successfully"
     69      1)   printprocesslog "INFO wrote datasetfile for dataset $dataset successfully (check1=$check1)"
    7570           ;;
    76       0)   echo " check1=$check1 -> no connection to db -> continue..." >> $scriptlog 2>&1
    77            printprocesslog "WARN connection to DB failed"
     71      0)   printprocesslog "WARN connection to DB failed (check1=$check1)"
    7872           check="no"
    7973           ;;
    80       *)   echo " check1=$check1 -> ERROR " >> $scriptlog 2>&1
    81            printprocesslog "ERROR writedatasetfile.C failed"
     74      *)   printprocesslog "ERROR writedatasetfile.C failed (check1=$check1)"
    8275           com=$Fwritedatasetfile
    8376           check=$check1
     
    8578   esac
    8679   
    87    setstatus "stop" >> $scriptlog 2>&1
     80   setstatus "stop"
    8881done
    8982
    90 finish >> $scriptlog 2>&1
     83finish
    9184
Note: See TracChangeset for help on using the changeset viewer.