2 # ---------------------------------------------------------------
3 # This file runs the overdue generation script.
4 # If today is Monday, it runs the script for Sat/Sun/Mon,
5 # otherwise it runs once per day.
6 # ---------------------------------------------------------------
9 DATE=$(date +%Y-%d-%m);
11 BSCONFIG="/openils/conf/bootstrap.conf"
13 [ $(whoami) != "opensrf" ] && echo "Must be run as opensrf" && exit 1;
17 # If today is monday, run for sat/sun/mon
18 if [ "$DAY" == "1" ]; then ARGS="2 1 0"; fi;
20 ./eg_gen_overdue.pl $BSCONFIG $ARGS > "/openils/var/web/tmp/overdue/EG_overdue.$DATE.xml"