MAILTO=philip@trade-ideas.com,michael@trade-ideas.com # MIN HOUR DAY MONTH DAYOFWEEK COMMAND */2 * * * * cd /var/www/Supporting_Scripts/; php copy_barries_list.php # Update the Scottrade bill every morning at 2am. #0 2 * * * cd /var/www/Supporting_Scripts/;php scottrade_bill_current.php # Put the final result on the new Scottrade bill on the first of each month. #0 1 1 * * cd /var/www/Supporting_Scripts/; php scottrade_bill_current.php last_month # Update the refers every hour. #0 * * * * (cd /var/www/Supporting_Scripts/;nice -19 php show_refer.php)>/dev/null # every day at 5:05pm # (We assume that we already have new events in the general log. We can't say for sure about the refer log. #5 17 * * * (cd /var/www/Supporting_Scripts/;nice -19 php show_refer.php;nice -19 php show_refer.php 1;nice -19 php show_log.php 1)>/dev/null # every weekday after the live data has ended, and after the 7pm busy period for the oddsmaker. And after we think all of the normal overnight processing will be done. 30 21 * * 1-5 (cd /var/www/Supporting_Scripts/;./save_nasdaq;./save_nyse;php update_averages.php;./trim_alerts_new >/tmp/trim_alerts_new.txt;./Update_Special_Symbols) # run after the normal late overnight processing. the windows side does call this on its own but # we had a failure with no notifications and it doesn't hurt to run these averages again. 00 06 * * 1-5 cd /var/www/Supporting_Scripts/;php update_averages.php # Every morning at 4am 0 4 * * * cd /var/www/alldocs/stats;find ref_data web_use -ctime +30 \( -name 'Ref_*_*.gz' -o -name 'Starting_*_*.gz' \) -delete # right at the open. This is how we document it on the web site. This # is only used by the iPhone version. #30 06 * * 1-5 rsync -r --delete --times chuck-liddell:SharedDocs/GifCharts/ ~/SharedDocs/GifCharts/ 30 11 * * * cd /var/www/logs; find . -maxdepth 1 -ctime +19 -name '*_log.*0' -exec gzip -9 {} \; -exec mv {}.gz old \; # Clear weston's exclude list every weekday at 4pm 0 16 * * 1-5 /var/www/Supporting_Scripts/ResetWeston # Every 2 hours check for this users positions at conifer and update his symbol lists. 5 */2 * * 1-5 cd /var/www/Supporting_Scripts/;php CNFR_Brady.php > /tmp/CNFR_Brady.php.txt # Every trading day 5 minutes before the market opens. 25 6 * * 1-5 cd /var/www/Supporting_Scripts ; php TheEquitiesRoom.php > /tmp/TheEquitiesRoom.php.txt # Start several background tasks. We put these into screen to help us monitor, restart, etc. @reboot screen -d -m /var/www/Supporting_Scripts/screen_bob_saget # A report requested by e*trade. Every day at midnight eastern. 0 21 * * * cd /var/www/Supporting_Scripts/;php etrade_user_strategies.php # checks to make sure NxCore tapes are properly moved to Nicola so they aren't # accidentally deleted when we run out of space on Upgrayedd 0 11 * * * cd /var/www/Supporting_Scripts/;php CheckNxCoreData.php # These items were moved from its-the-cops to here on 5/23/2015. Some of these # moved to its-the-cops because the previous web server was not current enough # to speak JSON and its-the-cops used to be the backup web server. Others # were added to its-the-cops just because the first ones were there. We're # upgrading its-the-cops and it will no longer have any web related stuff on # it. Comic-con has been the backup web server for some time. # Stock Twits is cut off as of 1/28/2021 per Dan and Brad. #*/10 * * * * cd /var/www/Supporting_Scripts;php GetFromStockTwits.php > /tmp/GetFromStockTwits.txt 2>&1 55 17 * * 1-5 cd /var/www/Supporting_Scripts;php archive_alerts.php; php CheckArchiveAlerts.php 15 14 * * * /var/www/Supporting_Scripts/GetCrontabs;/var/www/Supporting_Scripts/GetConfigFiles 10 17 * * * /var/www/Supporting_Scripts/save_mydb_structure 5 13 * * * php /var/www/Supporting_Scripts/ift_diffs.php;touch /tmp/ift_diffs.txt 22 1 1 * * /var/www/Supporting_Scripts/scan_logs_for_etrade.tcl FINAL 22 0 * * * /var/www/Supporting_Scripts/scan_logs_for_etrade.tcl # this scans for splits in our database that don't look correct MAILTO=brad@trade-ideas.com,michael@trade-ideas.com 0 20 * * * cd /var/www/Supporting_Scripts ; php SplitsAudit.php 5 MAILTO=philip@trade-ideas.com,michael@trade-ideas.com,dmabe@trade-ideas.com # dave mabe script for infusionsoft 0 5 * * * cd /var/www/Supporting_Scripts ; ./UpdateInfusion > /tmp/infusion.log ; scp /tmp/infusion.log will:/tmp 0 4 * * * cd /var/www/Supporting_Scripts ; php socialemails.php > /tmp/socialemails.log #15 * * * * cd /var/www/Supporting_Scripts ; mv aggregateRevenue.log aggregateRevenue.log.1; php getAggregateRevenue.php -v > aggregateRevenue.log; scp aggregateRevenue.log will:/tmp ; php get_infusionsoft_commissions.php > /tmp/get_infusionsoft_commissions.log; scp /tmp/get_infusionsoft_commissions.log will:/tmp 0 2 * * * cd /var/www/Supporting_Scripts/daily_sql_commands ; php daily_sql_commands.php # call benzinga earnings multiple times throughout the trading day (replaced by FactSet) #25,55 4,5,6,7,8,9,10,11 * * 1-5 cd /var/www/Supporting_Scripts ; php UpdateEarningsBenzinga.php > /tmp/UpdateEarningsBenzinga.late.log # insider trades from edgar #0 21 * * 1-5 cd /var/www/Supporting_Scripts; php GetInsiderTrades.php # 0,30 * * * * cd /var/www/Supporting_Scripts ; php free_preview.php -d8 -b1565382000 >> /tmp/free_preview.log */5 * * * * cd /var/www/Supporting_Scripts/test_drive ; php free_preview.php -m1000 >> log.20220812.txt 0 18 * * * cd /var/www/Supporting_Scripts/campaignmonitor ; php sync_subscribers.php > /tmp/sync_subscribers.log ; scp /tmp/sync_subscribers.log will:/tmp 0 4 * * * cd /var/www/Supporting_Scripts/campaignmonitor/daily_stats; php daily_stats.php # https://docs.google.com/document/d/1uFr8cc5I6KIVDhYC7sHXF3BDgR_ORf_GQEgJRNGUh4A/edit#heading=h.r2lgzb5suljc # 0 17 * * * cd /var/www/Supporting_Scripts/omnovia; php omnovia.php > omnovia.log ; scp omnovia.log will:/tmp # https://docs.google.com/document/d/171kaRYYaddFKFgGwLnDyhmMRc3DD0iUH68-aqf7kjsI/edit# # 0 0 1 * * cd /var/www/Supporting_Scripts/ ; php awesomecalls_bill.php # Copy a few tables to will every night. Mostly for Dave M 0 2 * * * /var/www/Supporting_Scripts/database_to_will # This runs the currently_on_archive process. It archives the "now" data every 15 minutes, the daily once a day, etc. MAILTO=dmabe@trade-ideas.com,michael@trade-ideas.com */15 * * * * cd /var/www/Supporting_Scripts/currently_on_archive;php currently_on_archive.php -n 0 0 * * * cd /var/www/Supporting_Scripts/currently_on_archive;php currently_on_archive.php -d 0 0 * * 0 cd /var/www/Supporting_Scripts/currently_on_archive;php currently_on_archive.php -w 1 0 1 * * cd /var/www/Supporting_Scripts/currently_on_archive;php currently_on_archive.php -m 1 0 30 6,9 * cd /var/www/Supporting_Scripts/currently_on_archive;php currently_on_archive.php -q 1 0 31 3,12 * cd /var/www/Supporting_Scripts/currently_on_archive;php currently_on_archive.php -q # This runs the annual subscription reminder process. It runs once a day. #0 3 * * * cd /var/www/Supporting_Scripts/subscription_renewal;php InfusionAnnualReminder.php -rlive 5 13 * * * cd /var/www/Supporting_Scripts/ai_benzinga_report;php ai_benzinga_report.php MAILTO=dmabe@trade-ideas.com,michael@trade-ideas.com 5 5,13 * * 1-5 cd /var/www/Supporting_Scripts/nasdaq_capi;php nasdaq_capi.php 2 13 * * 1-5 cd /var/www/Supporting_Scripts/holly_charts; php symbol_chart.php && Rscript holly_race_gif.r 2> errors.log MAILTO=dmabe@trade-ideas.com # This runs a daily script to sync LeadDyno affiliates with Chargebee customer affiliate field 0 5 * * * cd /var/www/Supporting_Scripts/payment_refunds/; ./refreshPaymentRefundTable.sh 1 4 * * * cd /var/www/Supporting_Scripts/expired_accounts_disable_nyse/; php expired_accounts_disable_nyse.php -l35 -m250 #* * * * * cd /var/www/Supporting_Scripts/server_status_inclusive; php server_status_amalgam.php -r >> /tmp/server_status_inclusive.log # copies the users table to the simulated trading database (paper) on roberto (live) and drama (test) 1 4 * * * cd /var/www/Supporting_Scripts/paper_db_sync/; ./paper_db_sync.sh 2 3 * * * cd /var/www/Supporting_Scripts/symbol_likes_sync; php users_copy.php -update 0 17 * * * cd /var/www/Supporting_Scripts/subscriber_history; php subscriber_history.php > /dev/null 20 13 * * 1-5 cd /var/www/Supporting_Scripts/ai_battlefin_report;php ai_battlefin_report.php -dall 0 5 * * * cd /var/www/Supporting_Scripts/nyse_weasel_expirations/; php nyse_weasel_expirations.php -m200 12 3 * * * cd /var/www/Supporting_Scripts/nyse_redo_notifications/; ./nyse_redo_notifications.sh MAILTO=michael@trade-ideas.com,dmabe@trade-ideas.com,william@trade-ideas.com,kathleen@trade-ideas.com 20 4 * * * cd /var/www/Supporting_Scripts/core_dumps/; php FindCoreDumps.php -s MAILTO=michael@trade-ideas.com 25,55 4,5,6,7,8,9,10,11,12,13 * * 1-5 cd /var/www/Supporting_Scripts ; php WallStreetHorizon.php now update > /tmp/WallStreetHorizonsDateBreaks.log MAILTO=kathleen@trade-ideas.com # This script calls the Tune api every day at 3:30am to fetch conversion data that's used for analysing affiliate performance 30 3 * * * cd /var/www/Supporting_Scripts/AffiliatePerformanceTableUpdate/; php update_affiliate_performance.php -r update MAILTO=kathleen@trade-ideas.com # This script looks at the grandfathering table each day and determines whether an email should be expired based upon whether it is associated with active subscription in Chargebee 30 4 * * * cd /var/www/Supporting_Scripts/gf_table_retirement/; php grandFatherCheckForCancels.php -r MAILTO=kathleen@trade-ideas.com # This script updates the tune_refund_reconciliation table when Marissa does refund reports 30 3 * * * cd /var/www/Supporting_Scripts/tuneReconTable/; php updateTuneReconCron.php -r MAILTO=kathleen@trade-ideas.com # This is the interactive broker integration script and runs at 4:30 pm every weekday 30 13 * * 1-5 cd /var/www/Supporting_Scripts/ib_subscription_integration/; php ib_retrieve.php -r MAILTO=kathleen@trade-ideas.com # This script is run every day at 2:30am to check expiration status of subscriptions that are using Brightback related offers 30 2 * * * cd /var/www/Supporting_Scripts/brightback/; php brightbackCouponCron.php -r MAILTO=kathleen@trade-ideas.com # This script runs every 15 minutes to get needed data from Brightback pause and extension type offers by using Chargebee API calls */15 * * * * cd /var/www/Supporting_Scripts/brightback/; php processBrightbackRequests.php -r MAILTO=kathleen@trade-ideas.com # This script runs the monthly tune Referral script for Shari. Runs the first of each month, and processes referrals for the previous month. 30 4 1 * * cd /var/www/Supporting_Scripts/end_of_month_referrals/; php tuneMonthlyReferralCron.php -r MAILTO=kathleen@trade-ideas.com #This script is run very early each day (1:30 am) to check whether the previous day's chargebee payemnts are represented in the aggregate_revenue table 30 01 * * * cd /var/www/Supporting_Scripts/chargebee_payment_reconcile/; php reconcileCBPayments.php -d