OsmAnd/config/server_indexes_scripts/gen_finished_mail.sh

12 lines
409 B
Bash
Raw Normal View History

2011-09-14 01:40:49 +02:00
#!/bin/bash
# the CC field
echo > mail.txt
echo "Index generating finished or crashed." >> mail.txt
echo "List is sorted by time, first elements are the last created" >> mail.txt
echo >> mail.txt
ls -alrth indexes >> mail.txt
2011-09-14 01:40:49 +02:00
mail -s "Generating indexes finsihed or crashed" pavol.zibrita+index@gmail.com < mail.txt
mail -s "Generating indexes finsihed or crashed" victor.shcherb+index@gmail.com < mail.txt