Changeset 757
- Timestamp:
- 12/10/12 18:13:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_RunChecker
r756 r757 51 51 echo "${JobName} not in Catalog, we'll try to find it in ${SEARCH_DIR}" 52 52 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 ) 54 56 if [ X$FileList == X ] ; then 55 57 NbOcc=0 … … 57 59 NbOcc=${#FileList[@]} 58 60 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 59 79 fi 60 80 fi … … 87 107 break ;; 88 108 *) 89 echo "More than one job"90 109 break ;; 91 110 esac … … 198 217 eval Date=\${${JobType}_Date[${ind}]} 199 218 eval Status=\${${JobType}_Status[${ind}]} 219 eval Nb=\${${JobType}_Nb[${ind}]} 200 220 201 221 if [ X${Status} == XOK ] ; then … … 204 224 Color=${ColFat} 205 225 fi 206 printf " ${Color}%-8s${ColNon} |" ${Date}226 printf " ${Color}%-8s${ColNon} : %3i |" ${Date} ${Nb} 207 227 done 208 228 … … 312 332 done 313 333 334 314 335 if ( ( ! $fg_path ) && [ $# -lt 1 ] ) ; then 315 336 $0 -h … … 506 527 eval ${JobType}_Date[$ind]=${LastDate} 507 528 eval ${JobType}_Status[$ind]=${Status} 529 eval ${JobType}_Nb[$ind]=$( grep -c ^${String} ${POST_DIR}/${JobType}.${LastDate}.out ) 508 530 509 531 (( ind = ind + 1 )) … … 526 548 set -A FileList $( ls ${CWORK_DIR}/ATLAS | tail -n ${NbHisto} ) 527 549 528 if [ ${#FileList[*]} -gt ${NbLines} =0] ; then550 if [ ${#FileList[*]} -gt ${NbLines} ] ; then 529 551 NbLines=${#FileList[*]} 530 552 fi
Note: See TracChangeset
for help on using the changeset viewer.