Changeset 757


Ignore:
Timestamp:
12/10/12 18:13:43 (12 years ago)
Author:
labetoulle
Message:

RunChecker? :

  • Added the number of IGCM_sys_Put[Buffer]_Out to the output for rebuild and pack_* jobs to get a more precise idea of how things went ;
  • Added the possibility to choose the path from a list when more than one is found ;
  • Eclude IGCM_OUT/ (where part of the atlas and monitoring files are stored on Curie) from search path to save some time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_RunChecker

    r756 r757  
    5151    echo "${JobName} not in Catalog, we'll try to find it in ${SEARCH_DIR}" 
    5252 
    53     set -A FileList $( find ${SEARCH_DIR}/ -name "Job_${JobName}" ) 
     53    set -A FileList $( find ${SEARCH_DIR}/ \ 
     54                            -path ${SEARCH_DIR}/IGCM_OUT -prune -o \ 
     55                            -name Job_${JobName} -print ) 
    5456    if [ X$FileList == X ] ; then 
    5557      NbOcc=0 
     
    5759      NbOcc=${#FileList[@]} 
    5860      fg_new=true 
     61    fi 
     62  fi 
     63 
     64  if [ ${NbOcc} -gt 1 ] ; then 
     65    echo "More than one job" 
     66    ind=0 
     67    while [ ${ind} -lt ${NbOcc} ] ; do 
     68      printf '%2i) %-30s\n' ${ind} ${FileList[${ind}]} 
     69      (( ind = ind + 1 )) 
     70    done 
     71    echo "Give your choice number or 'q' to quit : " 
     72    read Choice 
     73    if [ X${Choice} == Xq ] ; then 
     74      exit 
     75    else 
     76      fg_new=true 
     77      FileList=${FileList[${Choice}]} 
     78      NbOcc=1 
    5979    fi 
    6080  fi 
     
    87107      break ;; 
    88108    *) 
    89       echo "More than one job" 
    90109      break ;; 
    91110  esac 
     
    198217      eval Date=\${${JobType}_Date[${ind}]} 
    199218      eval Status=\${${JobType}_Status[${ind}]} 
     219      eval Nb=\${${JobType}_Nb[${ind}]} 
    200220 
    201221      if [ X${Status} == XOK  ] ; then 
     
    204224        Color=${ColFat} 
    205225      fi 
    206       printf "     ${Color}%-8s${ColNon}     |" ${Date} 
     226      printf "  ${Color}%-8s${ColNon} : %3i  |" ${Date} ${Nb} 
    207227    done 
    208228 
     
    312332done 
    313333 
     334 
    314335if ( ( ! $fg_path ) && [ $# -lt 1 ] ) ; then 
    315336  $0 -h 
     
    506527      eval ${JobType}_Date[$ind]=${LastDate} 
    507528      eval ${JobType}_Status[$ind]=${Status} 
     529      eval ${JobType}_Nb[$ind]=$( grep -c ^${String} ${POST_DIR}/${JobType}.${LastDate}.out ) 
    508530       
    509531      (( ind = ind + 1 )) 
     
    526548    set -A FileList $( ls ${CWORK_DIR}/ATLAS | tail -n ${NbHisto} ) 
    527549 
    528     if [ ${#FileList[*]} -gt ${NbLines}=0 ] ; then 
     550    if [ ${#FileList[*]} -gt ${NbLines} ] ; then 
    529551      NbLines=${#FileList[*]} 
    530552    fi 
Note: See TracChangeset for help on using the changeset viewer.