MAILTO=maxx@maxx.matrixgroup.net
HOSTNAME=maxx4
# craete nightly maxx company dump for CF
2 0 * * * /home/maxx/scripts/exportNpraIndividualAssociation.py /home/matrix/current_npra/ /etc/httpd/conf/httpd-intranet.npra.conf -o /data/npra/protectedFiles/individualassociations.txt
6 0 * * * /home/maxx/scripts/exportNpraAllOwnersPlantsContractors.py /home/matrix/current_npra/ /etc/httpd/conf/httpd-intranet.npra.conf -o /data/npra/protectedFiles/ownersplantscontractors.txt
36 0 * * * /home/maxx/scripts/exportNpraAllRelaventIndividuals.py /home/matrix/current_npra/ /etc/httpd/conf/httpd-intranet.npra.conf -o /data/npra/protectedFiles/allrelaventindividuals.txt

# strip credit card numbers before the backup             
5 1 * * *  /home/maxx/scripts/stripCreditCard.py npra
6 1 * * *  /home/maxx/scripts/stripCreditCard.py wedi
7 1 * * *  /home/maxx/scripts/stripCreditCard.py urac
8 1 * * *  /home/maxx/scripts/stripCreditCard.py dsa

# Strip housing credit card info before the backup too
3 1 * * * /home/maxx/scripts/stripHousingCCNumbers.py -v -p /home/matrix/current_npra/ -c /etc/httpd/conf/httpd-intranet.npra.conf -n 42

# scrape credit card batches from verisign                                   
#45 4 * * * cd /home/maxx/scripts;/home/maxx/scripts/logonToVerisign.py /home/matrix/current_npra /etc/httpd/conf/httpd-intranet.npra.conf yesterday
#46 4 * * * cd /home/maxx/scripts;/home/maxx/scripts/createBatchForDay.py /home/matrix/current_npra /etc/httpd/conf/httpd-intranet.npra.conf 0x22B00000001 nprabatch.txt


# verisign for wedi
#47 4 * * * cd /home/maxx/scripts;/home/maxx/scripts/logonToVerisign.py /home/matrix/current_wedi /etc/httpd/conf/httpd-intranet.wedi.conf yesterday
#48 4 * * * cd /home/maxx/scripts;/home/maxx/scripts/createBatchForDay.py /home/matrix/current_wedi /etc/httpd/conf/httpd-intranet.wedi.conf 0x92D00000001 wedibatch.txt

# verisign for dsa
51 4 * * * cd /home/maxx/scripts;/home/maxx/scripts/logonToVerisign.py /home/matrix/current_dsa /etc/httpd/conf/httpd-intranet.dsa.conf yesterday
52 4 * * * cd /home/maxx/scripts;/home/maxx/scripts/createBatchForDay.py /home/matrix/current_dsa /etc/httpd/conf/httpd-intranet.dsa.conf 0x87900000001 dsabatch.txt

# create pledge ar items for dsa once a month
9 3 1 * * /home/maxx/scripts/clcm.py -p /home/matrix/current_dsa -c /etc/httpd/conf/httpd-intranet.dsa.conf -C ARReport -m createPledgeARItems

# a/r report for dsa
10 2 * * * /home/maxx/scripts/clcm.py -p /home/matrix/current_dsa -c /etc/httpd/conf/httpd-intranet.dsa.conf -C ARReport -m runARReport

# renewal reminders for wedi
12 2 * * * /home/maxx/scripts/clcm.py -p /home/matrix/current_wedi -c /etc/httpd/conf/httpd-intranet.wedi.conf -C Membership -m sendExpirationEmails 60

13 2 * * * /home/maxx/scripts/clcm.py -p /home/matrix/current_wedi -c /etc/httpd/conf/httpd-intranet.wedi.conf -C Membership -m sendExpirationEmails 15

14 2 * * * /home/maxx/scripts/clcm.py -p /home/matrix/current_wedi -c /etc/httpd/conf/httpd-intranet.wedi.conf -C Membership -m sendExpirationEmails -- -45 "LAST"

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

# regen mailing lists
20 2 * * * /home/maxx/scripts/saveMailingLists.py /home/matrix/current_npra /etc/httpd/conf/httpd-intranet.npra.conf

40 2 * * * /home/maxx/scripts/saveMailingLists.py /home/matrix/current_wedi /etc/httpd/conf/httpd-intranet.wedi.conf

50 2 * * * /home/maxx/scripts/saveMailingLists.py /home/matrix/current_dsa /etc/httpd/conf/httpd-intranet.dsa.conf

# cleare old sessions
3 3 * * * /home/maxx/scripts/deleteSessions.py

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

# record stats of object counts daily
15 4 * * * /usr/local/bin/maxx-python /home/maxx/scripts/dbObjStats.py /home/matrix/current_npra /etc/httpd/conf/httpd-intranet.npra.conf record
20 4 * * * /usr/local/bin/maxx-python /home/maxx/scripts/dbObjStats.py /home/matrix/current_wedi /etc/httpd/conf/httpd-intranet.wedi.conf record

# mark indivs as former staff if company changes to non-active
10 5 * * * /home/maxx/scripts/markFormerStaff.py -p /home/matrix/current_npra -c /etc/httpd/conf/httpd-intranet.npra.conf -u 0xB4400000001

# expire memberships for each client
0 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_npra /etc/httpd/conf/httpd-intranet.npra.conf 365250 expir_script

0 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_wedi /etc/httpd/conf/httpd-intranet.wedi.conf 60 expir_script

0 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_urac /etc/httpd/conf/httpd-intranet.urac.conf 365250 expir_script

0 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_dsa /etc/httpd/conf/httpd-intranet.dsa.conf 365250 expir_script

# 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_dsa /etc/httpd/conf/httpd-intranet.dsa.conf
25 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/deactivateMemberships.py /home/\matrix/current_npra /etc/httpd/conf/httpd-intranet.npra.conf
25 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/deactivateMemberships.py /home/\matrix/current_wedi /etc/httpd/conf/httpd-intranet.wedi.conf
25 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/deactivateMemberships.py /home/\matrix/current_urac /etc/httpd/conf/httpd-intranet.urac.conf

# mark Former staff for companies that are nolonger active
# Disabled, per work request 62433.
#10 5 * * * /usr/local/bin/maxx-python /home/maxx/scripts/markFormerStaff.py  -p /home/matrix/current_dsa -c /etc/httpd/conf/httpd-intranet.dsa.conf -u 0x14D00000000

# cron needs linefeed