MAILTO=maxx@maxx.matrixgroup.net

# expire memberships for each client
6 0 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_pmpa /etc/httpd/conf/httpd-intranet.pmpa.conf 10000 expir_script
7 0 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_ufpa /etc/httpd/conf/httpd-intranet.ufpa.conf 10000 expir_script

# strip credit card numbers before the backup
5 1 * * * /home/maxx/scripts/stripCreditCard.py pmpa
6 1 * * * /home/maxx/scripts/stripCreditCard.py ufpa

# trim the msgs database used for dupFilter
15 2 * * * /home/maxx/scripts/trimMsgs.sh

3 3 * * * /home/maxx/scripts/deleteSessions.py

# delete old page requests
15 6 * * * /home/maxx/scripts/deleteOldPageRequests.py localhost all

# deactivate membership
25 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/deactivateMemberships.py /home/matrix/current_ufpa /etc/httpd/conf/httpd-intranet.ufpa.conf
25 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/deactivateMemberships.py /home/matrix/current_pmpa /etc/httpd/conf/httpd-intranet.pmpa.conf

# get Batch Number from Paypal the new way
# scrape credit card batches from verisign for pmpa
28 6 * * * cd /home/maxx/scripts/NewStyleScripts; ./CreateBatchForDay.py --save -u BatchScript pmpa yesterday

# scrape credit card batches from verisign for ufpa
#55 6 * * * cd /home/maxx/scripts;/home/maxx/scripts/logonToVerisign.py /home/matrix/current_ufpa /etc/httpd/conf/httpd-intranet.ufpa.conf yesterday
#58 6 * * * cd /home/maxx/scripts;/home/maxx/scripts/createBatchForDay.py /home/matrix/current_ufpa /etc/httpd/conf/httpd-intranet.ufpa.conf 0xC3B00000001 ufpabatch.txt

# dump dbs
5 3 * * * /home/maxx/scripts/dumpdbs.sh

# regen mailing lists
25 2 * * * /home/maxx/scripts/saveMailingLists.py /home/matrix/current_ufpa /etc/httpd/conf/httpd-intranet.ufpa.conf
30 2 * * * /home/maxx/scripts/saveMailingLists.py /home/matrix/current_pmpa /etc/httpd/conf/httpd-intranet.pmpa.conf

# cron needs lf at end