Author: hhubner Date: 2006-10-16 14:30:48 -0400 (Mon, 16 Oct 2006) New Revision: 2006
Added: branches/xml-class-rework/projects/bos/statistics/mail-stats.sh Log: Script to mail out sponsor database automatically at night.
Added: branches/xml-class-rework/projects/bos/statistics/mail-stats.sh =================================================================== --- branches/xml-class-rework/projects/bos/statistics/mail-stats.sh 2006-10-15 23:21:43 UTC (rev 2005) +++ branches/xml-class-rework/projects/bos/statistics/mail-stats.sh 2006-10-16 18:30:48 UTC (rev 2006) @@ -0,0 +1,11 @@ +#!/bin/sh + +FILE=/tmp/contracts.xml +URL=http://127.0.0.1:8080/reports-xml/all-contracts +FROM='MXM Automatic Mailer mxm-automail@createrainforest.org' +TO='MXM Administrator mxm-administrator@createrainforest.org' +SUBJECT='Square meter contract database' + +fetch -q -o $FILE $URL +perl -MMIME::Lite -e "MIME::Lite->new(From => '$FROM', To => '$TO', Subject => '$SUBJECT', Type => 'application/vnd.ms-excel', Path => '$FILE')->send()" +rm $FILE
Property changes on: branches/xml-class-rework/projects/bos/statistics/mail-stats.sh ___________________________________________________________________ Name: svn:executable + * Name: svn:eol-style + native