# AZ Books - Customer Message Checker Cron Configuration # # This file contains the cron job entries for automated customer message checking # and auto-reply functionality. # # To install these cron jobs, run: # sudo crontab -e # Then add the lines below (remove the # comments) # # To view current cron jobs: # sudo crontab -l # # To remove cron jobs: # sudo crontab -r # Customer Message Checker - Run every 15 minutes # Checks for new customer messages and sends automated replies # */15 * * * * /var/www/html/crons/run_customer_message_checker.sh # Customer Message Checker - Run every 30 minutes (alternative, less frequent) # 0,30 * * * * /var/www/html/html/crons/run_customer_message_checker.sh # Customer Message Checker - Run every hour (conservative option) # 0 * * * * /var/www/html/crons/run_customer_message_checker.sh # Log rotation for customer message logs (run daily at 2 AM) # 0 2 * * * find /var/www/logs -name "customer_message*.log*" -mtime +7 -delete # Recommended cron job (uncomment to activate): # */15 * * * * /var/www/html/crons/run_customer_message_checker.sh # Alternative: Run only during business hours (9 AM to 6 PM, Monday-Friday) # */15 9-18 * * 1-5 /var/www/html/crons/run_customer_message_checker.sh # Alternative: Run every 5 minutes during peak hours (9 AM to 6 PM, Monday-Friday) # */5 9-18 * * 1-5 /var/www/html/crons/run_customer_message_checker.sh # Alternative: Run every 10 minutes during extended hours (8 AM to 8 PM, Monday-Friday) # */10 8-20 * * 1-5 /var/www/html/crons/run_customer_message_checker.sh