- Timestamp:
- 08/03/12 14:55:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/enlarge_my_files.sh
r1841 r1843 200 200 201 201 startTime=$( getDateMilliSeconds ) # gpdebug : time 202 resCmd=0 202 203 cat $set | $ncrcatcmd $ncrcatoptions -O -x -v $varstoexclude -o $outputfile > $logfile 2>&1 # gpdebug : a retablir 204 resCmd=$? 203 205 meantime=$( getTimeDiffSeconds $startTime ) # gpdebug : time 204 206 … … 206 208 # resultCmd=1 207 209 # if [ $resultCmd -eq 0 ] ; then 208 if [ $ ?-eq 0 ] ; then210 if [ $resCmd -eq 0 ] ; then 209 211 sed -i "1i\meantime:${meantime}" $statusfile # gpdebug : time 210 212 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"` … … 214 216 else 215 217 # Add --md5_digest 218 rm -f $outputfile*ncrcat.tmp 216 219 startTime=$( getDateMilliSeconds ) # gpdebug : time 220 resCmd=0 217 221 cat $set | $ncrcatcmd $ncrcatoptions -O -x -v $varstoexclude -o $outputfile > $logfile 2>&1 # gpdebug : a retablir 222 resCmd=$? 218 223 meantime=$( getTimeDiffSeconds $startTime ) # gpdebug : time 219 224 # resultCmd=$( gives_0_or_1 ) 220 225 # resultCmd=1 221 226 # if [ $resultCmd -eq 0 ] ; then 222 if [ $ ?-eq 0 ] ; then227 if [ $resCmd -eq 0 ] ; then 223 228 sed -i "1i\meantime:${meantime}" $statusfile # gpdebug : time 224 229 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"` … … 227 232 echo "COMPLETED at try #$nbtries (at 2nd shot on 2)" >> $statusfile 228 233 else 234 rm -f $outputfile*ncrcat.tmp 229 235 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"` 230 236 echo "====> FAILED at try #$nbtries" … … 300 306 # #----------------------------------- 301 307 startTime=$( getDateMilliSeconds ) # gpdebug : time 308 resCmd=0 302 309 $tarcmd $taroptions $outputfile --dereference --files-from $set.local > $logfile 2>&1 # gpdebug : a retablir 310 resCmd=$? 303 311 meantime=$( getTimeDiffSeconds $startTime ) # gpdebug : time 304 312 305 313 # resultCmd=$( gives_0_or_1 ) 306 314 # if [ $resultCmd -eq 0 ] ; then 307 if [ $ ?-eq 0 ] ; then315 if [ $resCmd -eq 0 ] ; then 308 316 sed -i "1i\meantime:${meantime}" $statusfile # gpdebug : time 309 317 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"` … … 326 334 327 335 for set in $( ls $PATH_SIMU/restart_tar/*list ) ; do 328 329 336 #----------------------------------- 330 337 echo "#-------------------" … … 376 383 377 384 startTime=$( getDateMilliSeconds ) # gpdebug : time 385 resCmd=0 378 386 $tarcmd $taroptions $outputfile --dereference --files-from $set > $logfile 2>&1 # gpdebug : a retablir 387 resCmd=$? 379 388 meantime=$( getTimeDiffSeconds $startTime ) # gpdebug : time 380 389 381 390 # resultCmd=$( gives_0_or_1 ) 382 391 # if [ $resultCmd -eq 0 ] ; then 383 if [ $ ?-eq 0 ] ; then392 if [ $resCmd -eq 0 ] ; then 384 393 sed -i "1i\meantime:${meantime}" $statusfile # gpdebug : time 385 394 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"` … … 450 459 451 460 startTime=$( getDateMilliSeconds ) # gpdebug : time 461 resCmd=0 452 462 $tarcmd $taroptions $outputfile --dereference --files-from $set > $logfile 2>&1 # gpdebug : a retablir 463 resCmd=$? 453 464 meantime=$( getTimeDiffSeconds $startTime ) # gpdebug : time 454 465 455 466 # resultCmd=$( gives_0_or_1 ) 456 467 # if [ $resultCmd -eq 0 ] ; then 457 if [ $ ?-eq 0 ] ; then468 if [ $resCmd -eq 0 ] ; then 458 469 sed -i "1i\meantime:${meantime}" $statusfile # gpdebug : time 459 470 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"` … … 516 527 cpoptions="-rf" 517 528 startTime=$( getDateMilliSeconds ) # gpdebug : time 529 resCmd=0 518 530 $cpcmd $cpoptions $file $diroutputfile > $logfile 2>&1 # gpdebug : a retablir 531 resCmd=$? 519 532 meantime=$( getTimeDiffSeconds $startTime ) # gpdebug : time 520 533 done … … 522 535 # resultCmd=$( gives_0_or_1 ) 523 536 # if [ $resultCmd -eq 0 ] ; then 524 if [ $ ?-eq 0 ] ; then537 if [ $resCmd -eq 0 ] ; then 525 538 sed -i "1i\meantime:${meantime}" $statusfile # gpdebug : time 526 539 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"` … … 583 596 cpoptions="-rf" 584 597 startTime=$( getDateMilliSeconds ) # gpdebug : time 598 resCmd=0 585 599 $cpcmd $cpoptions $file $diroutputfile > $logfile 2>&1 # gpdebug : a retablir 600 resCmd=$? 586 601 meantime=$( getTimeDiffSeconds $startTime ) # gpdebug : timeS 587 602 done … … 589 604 # resultCmd=$( gives_0_or_1 ) 590 605 # if [ $resultCmd -eq 0 ] ; then 591 if [ $ ?-eq 0 ] ; then606 if [ $resCmd -eq 0 ] ; then 592 607 sed -i "1i\meantime:${meantime}" $statusfile # gpdebug : time 593 608 datestr2=`LC_ALL=C date +"%Y-%m-%dT%H:%M:%S"`
Note: See TracChangeset
for help on using the changeset viewer.