OsmAnd/config/server_indexes_scripts/upload_finished_mail.sh
2011-09-13 23:43:00 +00:00

14 lines
454 B
Bash
Executable file

#!/bin/bash
# the CC field
echo > mail.txt
echo "Uploading finished or crashed." >> mail.txt
echo "Files in upload dir:" >> mail.txt
echo >> mail.txt
ls -alt indexes/uploaded >> mail.txt
echo >> mail.txt
echo "Files in indexes dir:" >> mail.txt
ls -alt indexes >> mail.txt
mail -s "Uploading indexes finsihed or chrased" pavol.zibrita+index@gmail.com < mail.txt
mail -s "Uploading indexes finsihed or chrased" victor.shcherb+index@gmail.com < mail.txt