|
Revision 2045, 442 bytes
(checked in by hhubner, 2 years ago)
|
merge back from branches/xml-class-rework to trunk
|
- Property svn:eol-style set to
native
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
FILE=/tmp/contracts.xml |
|---|
| 4 |
URL=http://127.0.0.1:8080/reports-xml/all-contracts |
|---|
| 5 |
FROM='MXM Automatic Mailer <mxm-automail@createrainforest.org>' |
|---|
| 6 |
TO='MXM Administrator <mxm-administrator@createrainforest.org>' |
|---|
| 7 |
SUBJECT='Square meter contract database' |
|---|
| 8 |
|
|---|
| 9 |
fetch -q -o $FILE $URL |
|---|
| 10 |
perl -MMIME::Lite -e "MIME::Lite->new(From => '$FROM', To => '$TO', Subject => '$SUBJECT', Type => 'application/vnd.ms-excel', Path => '$FILE')->send()" |
|---|
| 11 |
rm $FILE |
|---|