Changeset 1837 for TOOLS


Ignore:
Timestamp:
07/31/12 16:02:23 (12 years ago)
Author:
acosce
Message:

Correct a bug on date end for debug pack

Location:
TOOLS/PACK_IPSL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/archive_debug.sh

    r1822 r1837  
    107107   year_end_pack=`expr ${year_begin_pack} + ${period_pack}` 
    108108 
    109    if [ ${month_end_pack} -le 9 ]  
    110    then  
    111       date_end_pack=${year_end_pack}0${month_end_pack}01 
    112    fi  
    113    if [ ${month_end_pack} -gt 9 ]  
    114    then  
    115       date_end_pack=${year_end_pack}${month_end_pack}01    
    116    fi  
     109   date_end_pack=${year_end_pack}${month_end_pack}01    
    117110 
    118    
    119111   for file in `awk '{print $9}' ${IGCM_TMP}/${$}.new_liste_debug_files.txt`; do  
    120     
    121112     extract_date_file=`echo ${file}  | sed -e "s/.*\${JobName}_//"` 
    122113     date_file=`echo ${extract_date_file}| sed 's/\([0-9]\{8\}\)_.*$/\1/g'` 
    123  
    124114 
    125115     if [  ${date_file} -lt ${date_end_pack} ] 
     
    155145   year_begin_pack=${year_end_pack} 
    156146 
    157    if [ ${month_begin_pack} -le 9 ] 
    158    then  
    159       date_begin_pack=${year_begin_pack}0${month_begin_pack}01 
    160    fi  
    161    if [ ${month_begin_pack} -gt 9 ] 
    162    then  
    163       date_begin_pack=${year_begin_pack}${month_begin_pack}01 
    164    fi  
    165  
     147   date_begin_pack=${year_begin_pack}${month_begin_pack}01 
    166148 
    167149   number_pack=`expr ${number_pack} + 1` 
  • TOOLS/PACK_IPSL/find_directory_simul.sh

    r1822 r1837  
    1212LISTE_SIMUL=${1} 
    1313LISTE_DMNFS=${2} 
    14  
     14echo $LISTE_SIMUL $LISTE_DMNFS 
    1515# ---- 
    1616export JOB_DIR=${JOB_DIR:-${PWD}} 
     
    2323SCRIPT_NAME=$(basename ${0} ) 
    2424source ${EXE_DIR}/DEM_utilities.sh 
     25 
     26echo "apres sources" ${SCRIPT_NAME} 
    2527 
    2628# gpdebug : verif si le present script a ete execute jusqu'au bout ######### 
     
    4749# Pour tous les fichiers ou repertoires contenus dans le fichier de parametres  
    4850for DIR in $( awk '{print $0}' ${LISTE_SIMUL} ) ; do  
     51 
    4952    DEM_log -1 ${SCRIPT_NAME} - Inspection de ${DIR}"/" 
    5053    # trouve la liste des repertoires restart sous l'arborescence     
Note: See TracChangeset for help on using the changeset viewer.