servers/roles/registrator/files/garaze_racunovodstvo.sh
2025-11-06 10:45:35 +01:00

12 lines
512 B
Bash

#!/bin/sh
GARAZEDIR="${HOME}/garaze/tmp"
# RECIPIENTS="polz@fri.uni-lj.si"
# RECIPIENTS="anita.strmole@fri.uni-lj.si"
# RECIPIENTS="racunovodstvo@fri.uni-lj.si"
RECIPIENTS="$(cat ${HOME}/garaze_recipients.txt)"
# cd /home/registrator/siemens-spica-rilec
rm $GARAZEDIR/*.xlsx
${HOME}/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