Skip to content

Instantly share code, notes, and snippets.

@sc0rpi0n95
Created February 9, 2018 10:00
Show Gist options
  • Save sc0rpi0n95/714172c4835d40c534b8af71133abfc8 to your computer and use it in GitHub Desktop.
Save sc0rpi0n95/714172c4835d40c534b8af71133abfc8 to your computer and use it in GitHub Desktop.
BloggingTribe.Com
Mautic Cronjob Codes - Last Updated Feb 8, 2018
_____________________________________________________
Disclaimer: This code is not the official documentation from Mautic.org, not is it indorced by Mautic.org. Please use at your own discretion.
Usage:
Step 1: Replace "*" with your directory path to your Mautic Installation
Step 2: create folder inside your Mautic installation called "cron_logs"
Step 3: Copy the code into your Cron Jobs manager.
Every Minute (Shared: Every 1-15 minutes)
_____________________________________________________
/usr/local/bin/php */app/console mautic:segments:update > */cron_logs/segments_update.log 2>&1
/usr/local/bin/php */app/console mautic:campaigns:rebuild > */cron_logs/campaigns_rebuild.log 2>&1
/usr/local/bin/php */app/console mautic:campaigns:trigger > */cron_logs/campaigns_trigger.log 2>&1
/usr/local/bin/php */app/console mautic:emails:send > */cron_logs/emails_sends.log 2>&1
/usr/local/bin/php */app/console mautic:messages:send > */cron_logs/messages_sends.log 2>&1
/usr/local/bin/php */app/console mautic:broadcasts:send > */cron_logs/broadcasts.log 2>&1
Every 5 Minutes (Shared: Every 5-20 Minutes)
_____________________________________________________
/usr/local/bin/php */app/console mautic:email:fetch > */cron_logs/email_fetch.log 2>&1
/usr/local/bin/php */app/console mautic:webhooks:process > */cron_logs/webhooks_process.log 2>&1
Every 30 Minutes (Shared: Every 30 - 60 Minutes)
_____________________________________________________
/usr/local/bin/php */app/console mautic:social:monitoring > */cron_logs/social_monitoring.log 2>&1
Daily (Shared: Daily)
_____________________________________________________
/usr/local/bin/php */app/console mautic:iplookup:download > */cron_logs/iplookup.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment