Skip to content

Commit

Permalink
export script to show email delivery of reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Barber committed Jul 6, 2015
1 parent 21f222e commit 9e33de0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions exporter/export.sh
@@ -0,0 +1,7 @@
#!/bin/bash

curl 'http://localhost:8080/saiku/rest/saiku/session' -H 'Content-Type: application/x-www-form-urlencoded' --data 'language=en&username=admin&password=admin' -c ./cookies.txt

curl 'http://localhost:8080/saiku/rest/saiku/admin/export/saiku/xls?file=/homes/home:admin/report1.saiku' -b cookies.txt > export.xls

echo | mutt -a "./export.xls" -s "Scheduled Report Delivery" -- email@email.com

0 comments on commit 9e33de0

Please sign in to comment.