Ignore:
Timestamp:
07/07/17 10:41:03 (7 years ago)
Author:
sdipsl
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_purge_simulation

    r1392 r1401  
    104104 
    105105  oui|OUI|o|y|yes|YES) 
    106     echo "OK. It will be erased." 
    107     for dir in ${ListDirectories[@]} ; do 
    108       IGCM_sys_RshArchive rm -rf ${dir} 
    109     done 
    110     # Remove dods hardlink 
    111     IGCM_sys_Dods_Rm 
    112     # Remove run.card 
    113     rm -f ${SUBMIT_DIR}/run.card 
    114     # Remove Script_Output 
    115     rm -f ${SUBMIT_DIR}/Script_Output_*.?????? 
    116     # Remove the Debug directory 
    117     rm -rf ${SUBMIT_DIR}/Debug 
    118     # Send a message telling we want to purge 
    119     IGCM_debug_sendAMQP_Purge  
    120     echo "done." 
     106 
     107    ERASE=FALSE 
     108    if [ X${config_UserChoices_SpaceName} = XTEST ] ; then 
     109      ERASE=TRUE 
     110    else 
     111      echo -e "\033[1;32mPlease type in the exact Job Name of the simulation to erase?" 
     112      read jobname 
     113      if [ X${config_UserChoices_JobName} = X${jobname} ; then 
     114        ERASE=TRUE 
     115      fi 
     116    fi 
     117 
     118    if [ X${ERASE} = XTRUE ] ; then 
     119      echo "OK. It will be erased." 
     120      for dir in ${ListDirectories[@]} ; do 
     121        IGCM_sys_RshArchive rm -rf ${dir} 
     122      done 
     123      # Remove dods hardlink 
     124      IGCM_sys_Dods_Rm 
     125      # Remove run.card 
     126      rm -f ${SUBMIT_DIR}/run.card 
     127      # Remove Script_Output 
     128      rm -f ${SUBMIT_DIR}/Script_Output_*.?????? 
     129      # Remove the Debug directory 
     130      rm -rf ${SUBMIT_DIR}/Debug 
     131      # Send a message telling we want to purge 
     132      IGCM_debug_sendAMQP_Purge  
     133      echo "done." 
     134    fi 
    121135    ;; 
    122136  non|NON|n|no|NO) 
Note: See TracChangeset for help on using the changeset viewer.