Ignore:
Timestamp:
09/05/12 16:40:02 (12 years ago)
Author:
gpincka
Message:

Traitement des listes ncrcat_output ==> output_tar + modif affichage du bilan dans showPack + suppression de IGCM_DEM dans launch_ipsl_pack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/showPackProgress.sh

    r1862 r1863  
    423423# find $IGCM_DEM -printf "%y %s %p \n" >> ${IGCM_DEM}/ListingEnd.txt 
    424424rm -f ${IGCM_DEM}/ListingEnd.txt 
    425 find $OUTPUT_STORE -printf "%y %s %p \n" >> ${IGCM_DEM}/ListingEnd.txt 
    426 find $OUTPUT_WORK -printf "%y %s %p \n" >> ${IGCM_DEM}/ListingEnd.txt 
     425 if [ -d "${OUTPUT_STORE}" ] 
     426 then 
     427     find $OUTPUT_STORE -printf "%y %s %p \n" >> ${IGCM_DEM}/ListingEnd.txt 
     428 fi 
     429 if [ -d "${OUTPUT_WORK}" ] 
     430 then 
     431     find $OUTPUT_WORK -printf "%y %s %p \n" >> ${IGCM_DEM}/ListingEnd.txt 
     432 fi 
    427433NbInodeAfter=`cat ${IGCM_DEM}/ListingEnd.txt |wc -l` 
    428 echo 
    429 echo "##################" 
    430 echo "#####  BILAN #####" 
    431 echo "##################" 
    432 echo "nb of Lists packed with success : ${nbOfListsPacked} / ${totalNbOfList}" 
    433 echo "nb of fails : $nbOfListsFailed" 
    434 echo "nb of inodes packed : $TotalNbInodes" 
    435 echo "nb simul full tared : $TotalSimuTar" 
    436 echo "nb inode before : $NbInodeBefore" 
    437 echo "nb inode after : $NbInodeAfter" 
    438 echo "Total time for elementary operations : $totalTime"  
    439 # echo "waiting time : $waitingTime" # supprime pour le moment : pb si +sieurs instances ==> on simplifie 
    440 # echo "Time since execution start : $timeSinceExecutionStart" # supprime pour le moment : pb si +sieurs instances ==> on simplifie 
    441 echo "Time since launch start : $timeSinceLaunchStart" 
    442  
    443  
    444  
     434 
     435if [ "x${outputFile}" == "x" ] 
     436then 
     437    echo 
     438    echo "##################" 
     439    echo "#####  BILAN #####" 
     440    echo "##################" 
     441    echo "nb of Lists packed with success : ${nbOfListsPacked} / ${totalNbOfList}" 
     442    echo "nb of fails : $nbOfListsFailed" 
     443    echo "nb of inodes packed : $TotalNbInodes" 
     444    echo "nb simul full tared : $TotalSimuTar" 
     445    echo "nb inode before : $NbInodeBefore" 
     446    echo "nb inode after : $NbInodeAfter" 
     447    echo "Total time for elementary operations : $totalTime"  
     448    echo "Time since launch start : $timeSinceLaunchStart" 
     449 
     450else 
     451    echo 
     452    echo "##################" >> ${outputFile} 
     453    echo "#####  BILAN #####" >> ${outputFile} 
     454    echo "##################" >> ${outputFile} 
     455    echo "nb of Lists packed with success : ${nbOfListsPacked} / ${totalNbOfList}" >> ${outputFile} 
     456    echo "nb of fails : $nbOfListsFailed" >> ${outputFile} 
     457    echo "nb of inodes packed : $TotalNbInodes" >> ${outputFile} 
     458    echo "nb simul full tared : $TotalSimuTar" >> ${outputFile} 
     459    echo "nb inode before : $NbInodeBefore" >> ${outputFile} 
     460    echo "nb inode after : $NbInodeAfter" >> ${outputFile} 
     461    echo "Total time for elementary operations : $totalTime" >> ${outputFile} 
     462    echo "Time since launch start : $timeSinceLaunchStart" >> ${outputFile} 
     463 
     464fi 
Note: See TracChangeset for help on using the changeset viewer.