Changeset 5069


Ignore:
Timestamp:
08/09/10 11:29:31 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/cron/nightlyrun.sh

    r5068 r5069  
    4040#Get configuration
    4141#Check that no other nightly run is running {{{1
    42 if [ "$(ps aux | grep "nighltyrun\.sh" | grep -v "grep")" ]
     42if [ "$(ps aux | grep "nightlyrun\.sh" | grep -v "grep")" ]
    4343then
    4444        echo "WARNING: A nightly run is already running. Killing..."
     
    224224fi
    225225#}}}
    226 #Create TEMP directory and nightly.log {{{1
     226#Create nightlylog directory and nightly.log {{{1
    227227#put installation elapsed time in nightly.log
    228228INSTALL_TIME=$(timer)
    229229ELAPSED_INSTALL=$(timer $START_TIME)
    230 rm -rf $ISSM_DIR/TEMP
    231 mkdir  $ISSM_DIR/TEMP
    232 cat << END > $ISSM_DIR/TEMP/nightly.log
     230rm -rf $ISSM_DIR/nightlylog
     231mkdir  $ISSM_DIR/nightlylog
     232cat << END > $ISSM_DIR/nightlylog/nightly.log
    233233today:     $(echo $TODAY)
    234234user:      $(echo $USER)
     
    249249ELAPSED_RUN=$(timer $INSTALL_TIME)
    250250ELAPSED_TOTAL=$(timer $START_TIME)
    251 cat << END >>  $ISSM_DIR/TEMP/nightly.log
     251cat << END >>  $ISSM_DIR/nightlylog/nightly.log
    252252elapsed_run:   $(echo $ELAPSED_RUN)
    253253elapsed_total: $(echo $ELAPSED_TOTAL)
     
    259259cd $ISSM_DIR/cron/
    260260./report2.sh
    261 echo "html report located in $ISSM_DIR/TEMP/report.html"
     261echo "html report located in $ISSM_DIR/nightlylog/report.html"
    262262#}}}
    263263#send mail if requested                  (SKIPMAIL) {{{1
     
    274274                        if [ "$OS" = "linux64" ]
    275275                        then
    276 cat - $ISSM_DIR/TEMP/report.html <<HERE | /usr/lib/sendmail  -oi -t
     276cat - $ISSM_DIR/nightlylog/report.html <<HERE | /usr/lib/sendmail  -oi -t
    277277From: "ISSM Nightly run" <$EMAIL_ADRESS>
    278278To: $i
     
    282282HERE
    283283                else
    284 cat - $ISSM_DIR/TEMP/report.html <<HERE | /usr/sbin/sendmail  -oi -t
     284cat - $ISSM_DIR/nightlylog/report.html <<HERE | /usr/sbin/sendmail  -oi -t
    285285From: "ISSM Nightly run" <$EMAIL_ADRESS>
    286286To: $i
Note: See TracChangeset for help on using the changeset viewer.