Changeset 1924 for TOOLS/PACK_IPSL/archive_debug.sh
- Timestamp:
- 11/16/12 16:38:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/archive_debug.sh
r1922 r1924 61 61 fi 62 62 # On copie les fichiers de Debug sur le scratchdir en changeant le nom et conservant la date 63 grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep Debug | awk '{print $3}' | sed '/^.*Debug$/d' >> ${IGCM_TMP}/${$}.liste_debug_files.txt 63 grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep Debug | grep "f "| awk '{print $3}' | sed '/^.*Debug$/d' >> ${IGCM_TMP}/${$}.liste_debug_files.txt 64 64 65 # Test si il y a un repertoire Debug 65 66 listDebugNbLines=`cat ${IGCM_TMP}/${$}.liste_debug_files.txt | wc -l ` … … 72 73 sed "/${JobName}_Bands/d" ${IGCM_TMP}/${$}.liste_debug_files.txt > ${IGCM_TMP}/${$}.liste_debug_files.txt_tmp 73 74 mv ${IGCM_TMP}/${$}.liste_debug_files.txt_tmp ${IGCM_TMP}/${$}.liste_debug_files.txt 75 76 # on s assure que les fichiers restant sont bien des fichiers dans Debug et pas des fichiers dans des sous-repertoires" 77 for file in `cat ${IGCM_TMP}/${$}.liste_debug_files.txt ` ; do 78 dir=$( echo $file | sed -e "s%.*Debug/%%") 79 testdir=$(dirname ${dir}) 80 if [ $testdir != "." ]; then 81 echo $( grep ${file} ${IGCM_TMP}/${$}.liste_debug_files.txt) >> ${IGCM_TMP}/${$}.liste_no_debug_files.txt 82 fi 83 done 84 if [ -f ${IGCM_TMP}/${$}.liste_no_debug_files.txt ]; then 85 join -t % -v 1 ${IGCM_TMP}/${$}.liste_debug_files.txt ${IGCM_TMP}/${$}.liste_no_debug_files.txt > ${IGCM_TMP}/${$}.info_tmp.txt 86 mv ${IGCM_TMP}/${$}.info_tmp.txt ${IGCM_TMP}/${$}.liste_debug_files.txt 87 rm -f ${IGCM_TMP}/${$}.liste_no_debug_files.txt 88 fi 74 89 gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_TMP}/${$}.liste_debug_files.txt 75 76 90 #on fait de meme avec les fichiers out_gcm.e stockes dans le repertoire Out/ qui seront prefixes par Out_ 77 91 rm -f ${IGCM_TMP}/${$}.liste_debug_files.txt … … 117 131 extract_date_file=`echo ${file} | sed -e "s/.*\${JobName}_//"` 118 132 date_file=`echo ${extract_date_file}| sed 's/\([0-9]\{8\}\)_.*$/\1/g'` 119 120 133 if [ ${date_file} -lt ${date_end_pack} ] 121 134 then … … 131 144 date_file=`echo ${extract_date_file}| sed 's/\([0-9]\{8\}\)_.*$/\1/g'` 132 145 133 if [ 146 if [ ${date_file} -lt ${date_end_pack} ] 134 147 then 135 148 if [ ${date_file} -ge ${date_begin_pack} ] … … 163 176 164 177 165 DEM_log -1 "On defini le datebegin de la prochaine periode pack"166 #on defini la periode pack suivante178 DEM_log -1 "On definit le datebegin de la prochaine periode pack" 179 #on definit la periode pack suivante 167 180 month_begin_pack=${month_end_pack} 168 181 year_begin_pack=${year_end_pack} … … 178 191 cd ${EXE_DIR} 179 192 180 # gpdebug : le script n 'a pas rencontre d'erreur. On l'inscrit dans le fichier de suivi193 # gpdebug : le script n a pas rencontre d'erreur. On l'inscrit dans le fichier de suivi 181 194 simuMonitoring_OK "$MonitoringInfo" "$config_card"
Note: See TracChangeset
for help on using the changeset viewer.