Changeset 617 for trunk/libIGCM/AA_pack_debug
- Timestamp:
- 03/29/12 13:59:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_pack_debug
r616 r617 295 295 296 296 # 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.txt297 find ${RUN_DIR} -maxdepth 1 -mindepth 1 -name "???_*${JobName}*" -ls | sort -k 11 > ${RUN_DIR}/new_liste_debug_files.txt 298 298 299 299 # ------------------------------------------------------------------ … … 322 322 # echo pack n°${number_pack} ${date_file} ${date_begin_pack} ${date_end_pack} 323 323 if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then 324 echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_${ number_pack}.txt325 echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${ number_pack}.txt324 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 326 326 # Will not work. Need to find a better ordering. 327 327 # elif [ ${date_file} -ge ${date_end_pack} ] ; then … … 332 332 # Create tar files 333 333 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}.txt334 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 335 335 # Save it 336 336 IGCM_sys_Put_Out ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar ${STORE_DEBUG} … … 338 338 IGCM_sys_Rm ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar 339 339 # Clean links 340 cat ${RUN_DIR}/liste_pack_${ number_pack}.txt | xargs rm340 cat ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt | xargs rm 341 341 # Clean files links pointed to 342 cat ${RUN_DIR}/liste_remove_pack_${ number_pack}.txt | xargs rm342 cat ${RUN_DIR}/liste_remove_pack_${date_begin_pack}_${date_end_pack}.txt | xargs rm 343 343 # 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} 345 345 IGCM_debug_Print 1 "Tar and cleaning done" 346 346
Note: See TracChangeset
for help on using the changeset viewer.