# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.14626 installed on Wed May 11 10:51:17 2005)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# email sent to linux2 then routed with procmail from maxx@linux2 account
MAILTO=maxx@maxx.matrixgroup.net
RSYNC_RSH=ssh
HOSTNAME=maxx3
# this section for freq of hour or less
53 * * * * /home/maxx/scripts/logReplicationProgress.sh

# send foodelert mailing lists update to maxx1 - mk2s turned off 2007/4/10
#5 0 * * * /home/maxx/scripts/exportEmailAddrs.py -p /home/matrix/current_fmiam -c /etc/httpd/conf/httpd-intranet.fmiam.conf -u maki 0x2C31000002C5 |ssh maxx@maxx1-x "/var/mailman/bin/sync_members -w=no -a=no -f - foodelert-all"
#6 0 * * * /home/maxx/scripts/exportEmailAddrs.py -p /home/matrix/current_fmiam -c /etc/httpd/conf/httpd-intranet.fmiam.conf -u maki 0x2C3A00000002 |ssh maxx@maxx1-x "/var/mailman/bin/sync_members -w=no -a=no -f - foodelert-suppliers"
#7 0 * * * /home/maxx/scripts/exportEmailAddrs.py -p /home/matrix/current_fmiam -c /etc/httpd/conf/httpd-intranet.fmiam.conf -u maki 0x2C3800000004 |ssh maxx@maxx1-x "/var/mailman/bin/sync_members -w=no -a=no -f - foodelert-retailers"
#8 0 * * * /home/maxx/scripts/exportEmailAddrs.py -p /home/matrix/current_fmiam -c /etc/httpd/conf/httpd-intranet.fmiam.conf -u maki 0x2BFC00000269 |ssh maxx@maxx1-x "/var/mailman/bin/sync_members -w=no -a=no -f - foodelert-test"

# strip credit card numbers before the backup
5 1 * * *  /home/maxx/scripts/stripCreditCard.py fmiam
5 1 * * * /home/maxx/scripts/stripCreditCard.py new

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

# scrape credit card batches from verisign
45 1 * * * cd /home/maxx/scripts;/home/maxx/scripts/logonToVerisign.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf yesterday
53 1 * * * cd /home/maxx/scripts;/home/maxx/scripts/createBatchForDay.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf 0x334200000001 fmiambatch.txt

17 */4 * * * /home/maxx/scripts/callPOMethod.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf DailyLeadRequest batchSendOpenRequests

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

# regen mailing lists
25 2 * * * /home/maxx/scripts/saveMailingLists.py  /home/matrix/current_new /etc/httpd/conf/httpd-intranet.new.conf

30 2 * * * /home/maxx/scripts/saveMailingLists.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf

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

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


# verisign for NEW
# scrape credit card batches from verisign for new -- seems to be after 2am
#03 5 * * * cd /home/maxx/scripts;/home/maxx/scripts/logonToVerisign.py /home/matrix/current_new /etc/httpd/conf/httpd-intranet.new.conf yesterday
#10 5 * * * cd /home/maxx/scripts;/home/maxx/scripts/createBatchForDay.py /home/matrix/current_new /etc/httpd/conf/httpd-intranet.new.conf 0x87F00000001 newbatch.txt

# record stats of object counts daily
15 5 * * * /usr/local/bin/maxx-python /home/maxx/scripts/dbObjStats.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf record
15 5 * * * /usr/local/bin/maxx-python /home/maxx/scripts/dbObjStats.py /home/matrix/current_sqf /etc/httpd/conf/httpd-intranet.sqf.conf record
15 5 * * * /usr/local/bin/maxx-python /home/maxx/scripts/dbObjStats.py /home/matrix/current_new /etc/httpd/conf/httpd-intranet.new.conf record

# mark Former staff for companies that are nolonger active
10 5 * * * /home/maxx/scripts/markFormerStaff.py -p /home/matrix/current_fmiam -c /etc/httpd/conf/httpd-intranet.fmiam.conf -u 0x10D4000000001

# expire documents
45 5 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireDocuments.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-www.fmiam.conf

# expire memberships for each client
# mk2s changed from 364 to 730 10/4/04
0 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-www.fmiam.conf 365250 expir_script

0 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_new /etc/httpd/conf/httpd-www.new.conf 150 expir_script

0 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/expireMemberships.py /home/matrix/current_sqf /etc/httpd/conf/httpd-www.sqf.conf 365250 expir_script


# copy pregenerated files
# fmi reports are now copied from the script
#30 9 * * * scp maxx2-x:/data/fmiam/cachedFiles/*RegistrationReport_*.htm /data/fmiam/cachedFiles/
#15 6 * * * scp maxx5-x:/data/fmiam/cachedFiles/spaceInfoReport_*.htm /data/fmiam/cachedFiles/
# Maxx5 no longer replicates the database, so we can't retrieve the 
# report from maxx5 any more.  We'll run them in the morning.
50 5 * * * /home/maxx/scripts/createSpaceInfoReports.py /home/matrix/current_fmiam/ /etc/httpd/conf/httpd-intranet.fmiam.conf

# Remove old records from PageRequests table nightly for all dbs
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_fmiam /etc/httpd/conf/httpd-www.fmiam.conf
25 6 * * * /usr/local/bin/maxx-python /home/maxx/scripts/deactivateMemberships.py /home/matrix/current_new /etc/httpd/conf/httpd-intranet.new.conf

# retry previous orders from tasco info
0 13 * * * /home/maxx/scripts/fmiUpdateOrdersFromTasco.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf 0xA20800000001 retry

# Get new Tasco files
10 13 * * * /home/maxx/scripts/CommerceMAXX-TascoFetch.py

# update orders from tasco info
20 13 * * * /home/maxx/scripts/fmiUpdateOrdersFromTasco.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf 0xA20800000001

# email tasco orders
00 14 * * 1,2,3,4,5 /usr/local/bin/maxx-python /home/maxx/scripts/emailPurchasesForFMI.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf 0x339200000001

# update verity tables
20 23 * * * /usr/local/bin/maxx-python /home/maxx/scripts/updateVerityTables.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf

# Check/fix multiple active affiliations issue
#00 22 * * * /home/maxx/scripts/callPOMethod.py /home/matrix/current_fmiam /etc/httpd/conf/httpd-intranet.fmiam.conf Individual fixMultipleActiveAffiliationsCaseForAll printResult=1

# Check Individual.SACompanyName.  Should happen after the multiple active
# affiliations issue is run above.
00 22 * * * /home/maxx/scripts/UpdateStoredAttributes.py -p /home/matrix/current_fmiam -c /etc/httpd/conf/httpd-intranet.fmiam.conf -n Individual -r SACompanyName

18 22 * * * /home/maxx/scripts/UpdateStoredAttributes.py -p /home/matrix/current_new -c /etc/httpd/conf/httpd-intranet.new.conf -n Individual -r SACompanyName

20 22 * * * /home/maxx/scripts/UpdateStoredAttributes.py -p /home/matrix/current_sqf -c /etc/httpd/conf/httpd-intranet.sqf.conf -n Individual -r SACompanyName

# cron need lf at end