Ignore:
Timestamp:
03/29/12 13:59:09 (12 years ago)
Author:
sdipsl
Message:
  • Use ${date_begin_pack}_${date_end_pack} instead of ${number_pack} in text files name
  • Bugfix in AA_pack_debug. Only occurs when JobName?=Job
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_pack_debug

    r616 r617  
    295295 
    296296# List renamed debug files. Exclude Job_xxx files. 
    297 find ${RUN_DIR} -name "???_*${JobName}*" -ls | grep -v Job_ | sort -k 11 > ${RUN_DIR}/new_liste_debug_files.txt 
     297find ${RUN_DIR} -maxdepth 1 -mindepth 1 -name "???_*${JobName}*" -ls | sort -k 11 > ${RUN_DIR}/new_liste_debug_files.txt 
    298298 
    299299# ------------------------------------------------------------------ 
     
    322322#   echo pack n°${number_pack}  ${date_file} ${date_begin_pack} ${date_end_pack} 
    323323    if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then 
    324         echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_${number_pack}.txt 
    325         echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${number_pack}.txt 
     324        echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt 
     325        echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${date_begin_pack}_${date_end_pack}.txt 
    326326#    Will not work. Need to find a better ordering. 
    327327#    elif [ ${date_file} -ge ${date_end_pack} ] ; then 
     
    332332  # Create tar files 
    333333  IGCM_debug_Print 1 "Tar ongoing" 
    334   tar -cvf ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar --dereference --files-from ${RUN_DIR}/liste_pack_${number_pack}.txt 
     334  tar -cvf ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar --dereference --files-from ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt 
    335335  # Save it 
    336336  IGCM_sys_Put_Out ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar ${STORE_DEBUG} 
     
    338338  IGCM_sys_Rm ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar 
    339339  # Clean links 
    340   cat ${RUN_DIR}/liste_pack_${number_pack}.txt | xargs rm 
     340  cat ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt | xargs rm 
    341341  # Clean files links pointed to 
    342   cat ${RUN_DIR}/liste_remove_pack_${number_pack}.txt | xargs rm 
     342  cat ${RUN_DIR}/liste_remove_pack_${date_begin_pack}_${date_end_pack}.txt | xargs rm 
    343343  # Save the list of files that has been pack (tar) 
    344   mv ${RUN_DIR}/liste_pack_${number_pack}.txt ${STORE_DEBUG} 
     344  mv ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt ${STORE_DEBUG} 
    345345  IGCM_debug_Print 1 "Tar and cleaning done" 
    346346 
Note: See TracChangeset for help on using the changeset viewer.