- Timestamp:
- 05/16/12 18:24:07 (12 years ago)
- Location:
- TOOLS/PACK_IPSL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/archive_debug.sh
r1728 r1730 44 44 DEBUG_TAR=$IGCM_DEM_SIMU/debug_tar 45 45 mkdir -p ${DEBUG_TAR} 46 STORE_CP=$IGCM_DEM_SIMU/store_cp 47 mkdir -p ${STORE_CP} 46 48 47 49 # lecture de periodpack dans ${IGCM_DEM_SIMU}/period_pack.txt … … 55 57 56 58 # On les copie sur le scratchdir en changeant le nom et conservant la date 57 grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep Debug | awk '{print $3}' | sed '/^.*Debug$/d' >> ${IGCM_DEM_SIMU}/liste_debug_files.txt 59 grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep Debug | awk '{print $3}' | sed '/^.*Debug$/d' >> ${IGCM_TMP}/${$}.liste_debug_files.txt 60 grep ${JobName}_Bands ${IGCM_TMP}/${$}.liste_debug_files.txt > ${STORE_CP}/cp_bands.list 61 sed "/${JobName}_Bands/d" ${IGCM_TMP}/${$}.liste_debug_files.txt > ${IGCM_TMP}/${$}.liste_debug_files.txt_tmp 62 mv ${IGCM_TMP}/${$}.liste_debug_files.txt_tmp ${IGCM_TMP}/${$}.liste_debug_files.txt 63 64 gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_TMP}/${$}.liste_debug_files.txt 58 65 59 60 #awk -F/ '{dest_name=$(NF-2)("_") $(NF); 61 # system("cp --preserve " $0 " "dest_name)}' ${IGCM_DEM_SIMU}/liste_debug_files.txt 62 63 gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_DEM_SIMU}/liste_debug_files.txt 64 65 ls -l ${STORE_DEBUG} > ${IGCM_DEM_SIMU}/new_liste_debug_files.txt 66 ls -l ${STORE_DEBUG} > ${IGCM_TMP}/${$}.new_liste_debug_files.txt 66 67 67 68 ### 2- creer les listes de fichiers par periode #### … … 104 105 105 106 106 for file in `awk '{print $9}' ${IGCM_ DEM_SIMU}/new_liste_debug_files.txt`; do107 for file in `awk '{print $9}' ${IGCM_TMP}/${$}.new_liste_debug_files.txt`; do 107 108 108 109 extract_date_file=`echo ${file} | sed -e "s/.*\${JobName}_//"` -
TOOLS/PACK_IPSL/archive_restart.sh
r1728 r1730 72 72 73 73 # On les copie sur le scratchdir en changeant le nom et conservant la date 74 grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep Restart | awk '{print $3}' | sed '/^.*Restart$/d' >> ${IGCM_ DEM_SIMU}/liste_restart_files.txt74 grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep Restart | awk '{print $3}' | sed '/^.*Restart$/d' >> ${IGCM_TMP}/${$}.liste_restart_files.txt 75 75 76 77 gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_TMP}/${$}.liste_restart_files.txt 76 78 77 #awk -F/ '{dest_name=$(NF-2)("_") $(NF); 78 # system("cp --preserve " $0 " "dest_name)}' ${IGCM_DEM_SIMU}/liste_restart_files.txt 79 80 gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_DEM_SIMU}/liste_restart_files.txt 81 82 ls -l ${STORE_RESTART} > ${IGCM_DEM_SIMU}/new_liste_restart_files.txt 79 ls -l ${STORE_RESTART} > ${IGCM_TMP}/${$}.new_liste_restart_files.txt 83 80 84 81 ### 2- creer les listes de fichiers par periode #### … … 121 118 122 119 123 for file in `awk '{print $9}' ${IGCM_ DEM_SIMU}/new_liste_restart_files.txt`; do120 for file in `awk '{print $9}' ${IGCM_TMP}/${$}.new_liste_restart_files.txt`; do 124 121 125 122 extract_date_file=`echo ${file} | sed -e "s/.*\${JobName}_//"`
Note: See TracChangeset
for help on using the changeset viewer.