Ignore:
Timestamp:
09/17/12 15:29:09 (12 years ago)
Author:
aclsce
Message:
  • Option to delete input files
  • set +x added to avoid too many prints
  • double check by default
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/showPackProgress.sh

    r1876 r1885  
    225225      
    226226     listName=`echo $(basename $set) | sed 's;\.list$;;' | sed 's;\.nc$;;' ` 
    227      ListNbInode=`cat $set |wc -l` 
    228      TotalNbInodes=$(( $TotalNbInodes + $ListNbInode )) 
     227     ListNbInode=`cat $set | wc -l` 
     228#     TotalNbInodes=$(( $TotalNbInodes + $ListNbInode )) 
    229229     statusfile=${set%%.list}.status 
    230230     status=$( progressStatus $statusfile ) # gpdebug : a retablir 
     
    351351nbOfListsFailed=0 
    352352nbOfListsNottreated=0 
    353 TotalNbInodes=0 
     353#TotalNbInodes=0 
    354354TotalSimuTar=0 
    355355totalTime=0 
     
    476476     find $OUTPUT_WORK -printf "%y %s %p \n" >> ${IGCM_DEM}/ListingEnd.txt 
    477477 fi 
    478 NbInodeAfter=`cat ${IGCM_DEM}/ListingEnd.txt |wc -l` 
     478 
     479if [ -e ${IGCM_DEM}/ListingEnd.txt ] 
     480then  
     481    NbInodeAfter=`cat ${IGCM_DEM}/ListingEnd.txt |wc -l` 
     482fi 
    479483 
    480484if [ "x${outputFile}" == "x" ] 
     
    490494    echo "nb of fails : $nbOfListsFailed" 
    491495    echo "nb of not treated : ${nbOfListsNottreated}" 
    492     echo "nb of inodes packed : $TotalNbInodes" 
     496#    echo "nb of inodes packed : $TotalNbInodes" 
    493497    echo "nb simul full tared : $TotalSimuTar" 
    494498    echo "nb inode before : $NbInodeBefore" 
     
    510514    echo "nb of fails : $nbOfListsFailed" >> ${outputFile} 
    511515    echo "nb of not treated : ${nbOfListsNottreated}" >> ${outputFile} 
    512     echo "nb of inodes packed : $TotalNbInodes" >> ${outputFile} 
     516#    echo "nb of inodes packed : $TotalNbInodes" >> ${outputFile} 
    513517    echo "nb simul full tared : $TotalSimuTar" >> ${outputFile} 
    514518    echo "nb inode before : $NbInodeBefore" >> ${outputFile} 
     
    518522    else 
    519523# Publication 
    520     echo "User;TotalNbSimu;NbOfSimuPacked;NbOfSimuFailed;NbOfSimuNottreated;TotalNbOfList;NbOfListsPacked;NbOfListsFailed;NbOfListsNottreated;TotalNbFiles;Nbfilestreated;Nbfilesafter;NbSimuTar" > ${outputFile} 
    521     echo "${USER};${TotalNbSimu};${nbOfSimuPacked};${nbOfSimuFailed};${nbOfSimuNottreated};${totalNbOfList};${nbOfListsPacked};$nbOfListsFailed;${nbOfListsNottreated};$TotalNbInodes;$NbInodeBefore;$NbInodeAfter;$TotalSimuTar" >> ${outputFile} 
     524    echo "User;TotalNbSimu;NbOfSimuPacked;NbOfSimuFailed;NbOfSimuNottreated;TotalNbOfList;NbOfListsPacked;NbOfListsFailed;NbOfListsNottreated;TotalNbFiles;Nbfilesafter;NbSimuTar" > ${outputFile} 
     525    echo "${USER};${TotalNbSimu};${nbOfSimuPacked};${nbOfSimuFailed};${nbOfSimuNottreated};${totalNbOfList};${nbOfListsPacked};$nbOfListsFailed;${nbOfListsNottreated};$NbInodeBefore;$NbInodeAfter;$TotalSimuTar" >> ${outputFile} 
    522526    fi 
    523527fi 
Note: See TracChangeset for help on using the changeset viewer.