Changeset 1553
- Timestamp:
- 08/04/09 15:35:52 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/nightlyrun.sh
r1544 r1553 15 15 export TODAY=`date | awk '{printf("%s-%s-%s",$2,$3,$6);}'`; 16 16 export HOST_NAME=`hostname`; 17 export HOST_NAME_SHORT=`hostname -s`; 17 if [[ "$OS" == "win32xp" ]] 18 then 19 export HOST_NAME_SHORT=`hostname`; 20 else 21 export HOST_NAME_SHORT=`hostname -s`; 22 fi 18 23 export ISSM_RELEASE="issm" 19 24 … … 82 87 source cron/mailinglist 83 88 for i in `echo $MAILINGLIST`; do 84 cat - report.html <<HERE | /usr/lib/sendmail -oi -t 85 From: "ISSM Nightly run" <$EMAIL_ADRESS> 89 90 if [[ "$OS" == "win32xp" ]] 91 then 92 email -html -f "ISSM Nightly run $EMAIL_ADRESS" -s "Nightly runs of $ISSM_RELEASE on: $HOST_NAME. Date:$TODAY. " $i < report.html 93 else 94 cat - report.html <<HERE | /usr/lib/sendmail -oi -t 95 From: "ISSM Nightly run" $EMAIL_ADRESS 86 96 To: $i 87 97 Subject: Nightly runs of $ISSM_RELEASE on: $HOST_NAME_SHORT. Date:$TODAY. … … 89 99 Content-Type: text/html 90 100 HERE 101 fi 102 91 103 done 92 104
Note:
See TracChangeset
for help on using the changeset viewer.