servers/roles/registrator/files/garaze_racunovodstvo.sh
2025-07-25 17:09:43 +02:00

12 lines
494 B
Bash

#!/bin/sh
GARAZEDIR="~/garaze/tmp"
# RECIPIENTS="polz@fri.uni-lj.si"
# RECIPIENTS="anita.strmole@fri.uni-lj.si"
# RECIPIENTS="racunovodstvo@fri.uni-lj.si"
RECIPIENTS="$(cat ~/garage_recipients.txt)"
# cd /home/registrator/siemens-spica-rilec
rm $GARAZEDIR/*.xlsx
~/siemens-spica-rilec/garage_count.py --employee --calculation --format xlsx ~/data "$GARAZEDIR/garaze_{start}_{end}.xlsx"
echo "Garaže za pretekli mesec" | mail -s "Garaže za pretekli mesec" "$RECIPIENTS" -A $GARAZEDIR/*.xlsx