Changeset 1730


Ignore:
Timestamp:
05/16/12 18:24:07 (12 years ago)
Author:
acosce
Message:
  • create a list to copy for $JobName_Bands_... files
Location:
TOOLS/PACK_IPSL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/archive_debug.sh

    r1728 r1730  
    4444DEBUG_TAR=$IGCM_DEM_SIMU/debug_tar 
    4545mkdir -p ${DEBUG_TAR} 
     46STORE_CP=$IGCM_DEM_SIMU/store_cp 
     47mkdir -p ${STORE_CP} 
    4648 
    4749# lecture de periodpack dans ${IGCM_DEM_SIMU}/period_pack.txt 
     
    5557 
    5658# 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 
     59grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep Debug | awk '{print $3}' | sed '/^.*Debug$/d' >> ${IGCM_TMP}/${$}.liste_debug_files.txt 
     60grep ${JobName}_Bands ${IGCM_TMP}/${$}.liste_debug_files.txt > ${STORE_CP}/cp_bands.list 
     61sed "/${JobName}_Bands/d" ${IGCM_TMP}/${$}.liste_debug_files.txt > ${IGCM_TMP}/${$}.liste_debug_files.txt_tmp 
     62mv ${IGCM_TMP}/${$}.liste_debug_files.txt_tmp ${IGCM_TMP}/${$}.liste_debug_files.txt 
     63   
     64gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_TMP}/${$}.liste_debug_files.txt 
    5865 
    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 
     66ls -l ${STORE_DEBUG} > ${IGCM_TMP}/${$}.new_liste_debug_files.txt 
    6667 
    6768### 2- creer les listes de fichiers par periode #### 
     
    104105 
    105106   
    106    for file in `awk '{print $9}' ${IGCM_DEM_SIMU}/new_liste_debug_files.txt`; do  
     107   for file in `awk '{print $9}' ${IGCM_TMP}/${$}.new_liste_debug_files.txt`; do  
    107108    
    108109     extract_date_file=`echo ${file}  | sed -e "s/.*\${JobName}_//"` 
  • TOOLS/PACK_IPSL/archive_restart.sh

    r1728 r1730  
    7272 
    7373# 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.txt 
     74grep ${PATH_SIMUL_FULL} ${LISTE_DMNFS} | grep Restart | awk '{print $3}' | sed '/^.*Restart$/d' >> ${IGCM_TMP}/${$}.liste_restart_files.txt 
    7575 
     76   
     77gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${IGCM_TMP}/${$}.liste_restart_files.txt 
    7678 
    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 
     79ls -l ${STORE_RESTART} > ${IGCM_TMP}/${$}.new_liste_restart_files.txt 
    8380 
    8481### 2- creer les listes de fichiers par periode #### 
     
    121118 
    122119   
    123    for file in `awk '{print $9}' ${IGCM_DEM_SIMU}/new_liste_restart_files.txt`; do  
     120   for file in `awk '{print $9}' ${IGCM_TMP}/${$}.new_liste_restart_files.txt`; do  
    124121    
    125122     extract_date_file=`echo ${file}  | sed -e "s/.*\${JobName}_//"` 
Note: See TracChangeset for help on using the changeset viewer.