Changeset 1553


Ignore:
Timestamp:
08/04/09 15:35:52 (16 years ago)
Author:
Eric.Larour
Message:

Minor corrections

File:
1 edited

Legend:

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

    r1544 r1553  
    1515export TODAY=`date | awk '{printf("%s-%s-%s",$2,$3,$6);}'`;
    1616export HOST_NAME=`hostname`;
    17 export HOST_NAME_SHORT=`hostname -s`;
     17if [[ "$OS" == "win32xp" ]]
     18then
     19        export HOST_NAME_SHORT=`hostname`;
     20else
     21        export HOST_NAME_SHORT=`hostname -s`;
     22fi
    1823export ISSM_RELEASE="issm"
    1924
     
    8287source cron/mailinglist
    8388for i in `echo $MAILINGLIST`; do
    84 cat - report.html <<HERE | /usr/lib/sendmail  -oi -t
    85 From: "ISSM Nightly run" <$EMAIL_ADRESS>
     89
     90if [[ "$OS" == "win32xp" ]]
     91then
     92        email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE on: $HOST_NAME. Date:$TODAY. " $i < report.html
     93else
     94        cat - report.html <<HERE | /usr/lib/sendmail  -oi -t
     95From: "ISSM Nightly run" $EMAIL_ADRESS
    8696To: $i
    8797Subject: Nightly runs of $ISSM_RELEASE on: $HOST_NAME_SHORT. Date:$TODAY.
     
    8999Content-Type: text/html
    90100HERE
     101fi
     102
    91103done
    92104
Note: See TracChangeset for help on using the changeset viewer.