# Complete List of Cron Jobs for Crontab

**URL:** <https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891>\
**Category:** Product Support\
**Created:** [May 29, 2015, 5:09pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891 "2015-05-29T17:09:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitpr89](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@ankitpr89](https://forum.mautic.org/u/ankitpr89)\
**Post date:** [May 29, 2015, 5:09pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/1 "2015-05-29T17:09:18Z")

</div>

Hey dev team,  
  
  
  
I need complete list of all cron jobs that I need to configure in Crontab. This will enable Mautic to run quite effectively.  
  
Please help with this.

---

<div class="post-metadata">

**Author:** ![ankitpr89](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@ankitpr89](https://forum.mautic.org/u/ankitpr89)\
**Post date:** [May 29, 2015, 5:09pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/2 "2015-05-29T17:09:18Z")

</div>

Hey dev team,

I need complete list of all cron jobs that I need to configure in Crontab. This will enable Mautic to run quite effectively.  
Please help with this.

---

<div class="post-metadata">

**Author:** ![dbhurley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dbhurley/32/2_2.png) [@dbhurley](https://forum.mautic.org/u/dbhurley)\
**Post date:** [May 29, 2015, 6:40pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/3 "2015-05-29T18:40:13Z")

</div>

Hi!

You can find those here:  
[https://www.mautic.org/getting-started](https://www.mautic.org/getting-started)

and here:  
[http://mautic.org/docs/setup/index.html](http://mautic.org/docs/setup/index.html)

TL;DR

Updating Lead Lists

`php /path/to/mautic/app/console mautic:leadlists:update --env=prod
`  
Update Campaigns

`php /path/to/mautic/app/console mautic:campaigns:update --env=prod
`  
Execute Campaign Actions

`php /path/to/mautic/app/console mautic:campaigns:trigger --env=prod
`  
Sending Email

`php /path/to/mautic/app/console mautic:email:process --env=prod
`

Hope that helps 🙂  
David

---

<div class="post-metadata">

**Author:** ![ankitpr89](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@ankitpr89](https://forum.mautic.org/u/ankitpr89)\
**Post date:** [May 31, 2015, 11:54am UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/4 "2015-05-31T11:54:04Z")

</div>

Thank you so much David!

---

<div class="post-metadata">

**Author:** ![ankitpr89](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@ankitpr89](https://forum.mautic.org/u/ankitpr89)\
**Post date:** [May 31, 2015, 12:02pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/5 "2015-05-31T12:02:13Z")

</div>

Added following to my Crontab:

\*/1 \* \* \* \* php /path/to/mautic/app/console mautic:leadlists:update --env=prod  
\*/1 \* \* \* \* php /path/to/mautic/app/console mautic:campaigns:update --env=prod  
\*/1 \* \* \* \* php /path/to/mautic/app/console mautic:campaigns:trigger --env=prod  
\*/1 \* \* \* \* php /path/to/mautic/app/console mautic:email:process --env=prod

---

<div class="post-metadata">

**Author:** ![auto](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@auto](https://forum.mautic.org/u/auto)\
**Post date:** [May 13, 2016, 8:41am UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/6 "2016-05-13T08:41:02Z")

</div>

Is there an additional cron job for web push notifications?

---

<div class="post-metadata">

**Author:** ![mbrinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mbrinson/32/116_2.png) [@mbrinson](https://forum.mautic.org/u/mbrinson)\
**Post date:** [November 8, 2016, 11:35pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/7 "2016-11-08T23:35:13Z")

</div>

Out of curiosity, what does the --env=prod argument actually do? I find that this works with or without that added at the end.

---

<div class="post-metadata">

**Author:** ![imautic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@imautic](https://forum.mautic.org/u/imautic)\
**Post date:** [November 19, 2016, 3:45pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/8 "2016-11-19T15:45:23Z")

</div>

[quote]  
mbrinson Nov 8

Out of curiosity, what does the --env=prod argument actually do? I find that this works with or without that added at the end.[/quote]

Yes, I second that question, what is the –env=prod argument for? Please explain. Thanks.

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 1, 2017, 7:43am UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/9 "2017-02-01T07:43:22Z")

</div>

Question from a newbie:

e.g. in the cron job  
/1 \* \* \* \* php /path/to/mautic/app/console mautic:leadlists:update --env=prod  
what do you need to change?  
   
Am I right in thinking that “/path/to/mautic/app” needs to be changed to the correct path on your server?

After working with Mautic for almost 2 weeks, I have only just come to this conclusion, as I’ve just realised my cron jobs aren’t working. BUT NOWHERE IN THE DOCUMENTATION DOES IT SAY THAT THESE PARAMETERS NEED TO BE CHANGED!

So I’ve simply kept the “/path to/mautic/app” in the cron job path in cPanel.

---

<div class="post-metadata">

**Author:** ![charlescorn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/charlescorn/32/155_2.png) [@charlescorn](https://forum.mautic.org/u/charlescorn)\
**Post date:** [February 1, 2017, 1:15pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/10 "2017-02-01T13:15:02Z")

</div>

It would make sense to someone experienced in coding and scripting, but it certainly isn’t common sense. It might explain why the forum here is strewn with people with cron problems and people have to post videos on YouTube to explain how to do it properly (which is how I found out). My assumption was that these parameters were automatically mapped to the folders in your server, given that you’d already told Mautic where to install the files.

Common sense would involve including a line in the documentation that said something on the lines of “You will have to replace “/path/to/mautic” with the path to the mautic installation on your server” followed by an example. How hard can that be?

To be honest, though, your comment is helpful because it suggests to me that Mautic probably isn’t for me. If I have to spend countless hours configuring settings that are “common sense” to most Mautic users, I’m in the wrong place!

---

<div class="post-metadata">

**Author:** ![chris0928](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris0928/32/118_2.png) [@chris0928](https://forum.mautic.org/u/chris0928)\
**Post date:** [February 1, 2017, 5:40pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/11 "2017-02-01T17:40:45Z")

</div>

@charlescorn I hear your frustration. I think this is also representative of the growing pains with Mautic. Many of the early adopters are already quite “tech-savvy”, so things that seem obvious to them may not be obvious at all to someone who just has a marketing background and is looking for great software.

Of course, folks like @MxyzptlkFishStix are much appreciated and much needed because they are generous with their time and knowledge and help answer questions, but as I mentioned – there can be a knowledge gap.

Self-hosted software tends to require more hands-on work, but there’s always free and paid Mautic Cloud. I think if Mautic is really going to grow, we (the community) will need to continue to work on making Mautic as accessible as possible for non-technical marketers and newbies.

---

<div class="post-metadata">

**Author:** ![a1exe1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/a1exe1/32/5655_2.png) [@a1exe1](https://forum.mautic.org/u/a1exe1)\
**Post date:** [May 18, 2017, 10:40am UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/12 "2017-05-18T10:40:33Z")

</div>

\*/1 \* \* \* \* php /var/www/html/app/console mautic:leadlists:update --env=prod  
\*/1 \* \* \* \* php /var/www/html/app/console mautic:campaigns:update --env=prod  
\*/1 \* \* \* \* php /var/www/html/app/console mautic:campaigns:trigger --env=prod  
\*/1 \* \* \* \* php /var/www/html/app/console mautic:email:process --env=prod

---

<div class="post-metadata">

**Author:** ![a1exe1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/a1exe1/32/5655_2.png) [@a1exe1](https://forum.mautic.org/u/a1exe1)\
**Post date:** [May 18, 2017, 10:41am UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/13 "2017-05-18T10:41:23Z")

</div>

[quote=1604:@ankitpr89]Hey dev team,

I need complete list of all cron jobs that I need to configure in Crontab. This will enable Mautic to run quite effectively.  
Please help with this.[/quote]

thats wrong answer actually

bellow - ok

`*/1 * * * * php /var/www/html/app/console mautic:leadlists:update --env=prod
*/1 * * * * php /var/www/html/app/console mautic:campaigns:update --env=prod
*/1 * * * * php /var/www/html/app/console mautic:campaigns:trigger --env=prod
*/1 * * * * php /var/www/html/app/console mautic:email:process --env=prod`

---

<div class="post-metadata">

**Author:** ![a1exe1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/a1exe1/32/5655_2.png) [@a1exe1](https://forum.mautic.org/u/a1exe1)\
**Post date:** [May 18, 2017, 10:49am UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/14 "2017-05-18T10:49:10Z")

</div>

aaand not only that  
we need to start each cron job with other time

so

`1-59/20 * * * * php /var/www/html/app/console mautic:leadlists:update --env=prod
5-59/20 * * * * php /var/www/html/app/console mautic:campaigns:update --env=prod
10-59/20 * * * * php /var/www/html/app/console mautic:campaigns:trigger --env=prod
15-59/20 * * * * php /var/www/html/app/console mautic:email:process --env=prod`

---

<div class="post-metadata">

**Author:** ![Alcides](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Alcides](https://forum.mautic.org/u/Alcides)\
**Post date:** [May 19, 2017, 2:00pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/15 "2017-05-19T14:00:55Z")

</div>

[quote=23179:@a1exe1]aaand not only that  
we need to start each cron job with other time

so

`1-59/20 * * * * php /var/www/html/app/console mautic:leadlists:update --env=prod
5-59/20 * * * * php /var/www/html/app/console mautic:campaigns:update --env=prod
10-59/20 * * * * php /var/www/html/app/console mautic:campaigns:trigger --env=prod
15-59/20 * * * * php /var/www/html/app/console mautic:email:process --env=prod`[/quote]

Please are those commands really right?  
I AM asking because It is not the same as the Inês presented at the documentation.

---

<div class="post-metadata">

**Author:** ![redneckbob](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@redneckbob](https://forum.mautic.org/u/redneckbob)\
**Post date:** [May 20, 2017, 1:24pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/16 "2017-05-20T13:24:30Z")

</div>

Running Mautic on your own server is no easy task. It is almost a necessity to have command line UNIX experience to properly setup and especially debug when things go sideways.

It really needs a WARNING: If any of this is greek to you, get a free account at [mautic.com](http://mautic.com) on the download page.

Typically I run Mautic on Ubuntu 16.04 LTS and like to log the output to /tmp, so mine looks like:

`0,15,30,45 * * * * sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:broadcasts:send 2>&1 >> /tmp/mautic.broadcasts.send.txt
1,16,31,46 * * * * sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:segments:update 2>&1 >> /tmp/mautic.segments.update.txt
2,17,32,47 * * * * sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:campaigns:rebuild 2>&1 >> /tmp/mautic.campaings.rebuild.txt
3,18,33,48 * * * * sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:campaigns:trigger 2>&1 >> /tmp/mautic.campaigns.trigger.txt
4,19,34,49 * * * * sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:emails:send 2>&1 >> /tmp/mautic.emails.send.txt
5,20,35,50 * * * * sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:emails:fetch 2>&1 >> /tmp/mautic.emails.fetch.txt
7 * * * * sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:iplookup:download 2>&1 >> /tmp/mautic.iplookup.download.txt
9,24,39,54 * * * * sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:social:monitoring 2>&1 >> /tmp/mautic.social.monitoring.txt
`

---

<div class="post-metadata">

**Author:** ![redneckbob](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@redneckbob](https://forum.mautic.org/u/redneckbob)\
**Post date:** [May 20, 2017, 1:26pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/17 "2017-05-20T13:26:32Z")

</div>

PS - I run cron under the root user, ergo, the sudo -u ww-data command that precedes the /usr/bin/php.

---

<div class="post-metadata">

**Author:** ![a1exe1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/a1exe1/32/5655_2.png) [@a1exe1](https://forum.mautic.org/u/a1exe1)\
**Post date:** [May 26, 2017, 2:03pm UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/18 "2017-05-26T14:03:52Z")

</div>

last cron job

`0,15,30,45 * * * * root /usr/bin/php /var/www/html/app/console mautic:webhooks:process 2>&1 >> /var/www/html/tmp/mautic.webhooks.txt
2,12,22,32,42,52 * * * * root /usr/bin/php /var/www/html/app/console mautic:segments:update 2>&1 >> /var/www/html/tmp/mautic.segments.txt 
3,13,23,33,43,53 * * * * root /usr/bin/php /var/www/html/app/console mautic:campaigns:rebuild 2>&1 >> /var/www/html/tmp/mautic.campaings.rebuild.txt
4,14,24,34,44,54 * * * * root /usr/bin/php /var/www/html/app/console mautic:campaigns:trigger 2>&1 >> /var/www/html/tmp/mautic.campaigns.trigger.txt
*/1 * * * * root /usr/bin/php /var/www/html/app/console mautic:emails:send 2>&1 >> /var/www/html/tmp/mautic.emails.send.txt
5 0 * * * root /usr/bin/php /var/www/html/app/console mautic:email:fetch 2>&1 >> /var/www/html/tmp/mautic.emails.fetch.txt
6 0 * * * root /usr/bin/php /var/www/html/app/console mautic:iplookup:download 2>&1 >> /var/www/html/tmp/mautic.iplookup.txt
7,17,27,37,47,57 * * * * root /usr/bin/php /var/www/html/app/console mautic:social:monitoring 2>&1 >> /var/www/html/tmp/mautic.social.monitoring.txt
1,16,31,46 * * * * root /usr/bin/php /var/www/html/app/console mautic:broadcasts:send 2>&1 >> /var/www/html/tmp/mautic.broadcasts.send.txt`

---

<div class="post-metadata">

**Author:** ![social](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@social](https://forum.mautic.org/u/social)\
**Post date:** [December 1, 2017, 10:53am UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/19 "2017-12-01T10:53:30Z")

</div>

This is my crontab running on:  
mautic v2.11.0 linux x64 installer on debian 8 bitnami Virtual Machine image, VMware .ova:  
[https://bitnami.com/redirect/to/166903/bitnami-mautic-2.11.0-0-r01-linux-debian-8-x86\_64.ova](https://bitnami.com/redirect/to/166903/bitnami-mautic-2.11.0-0-r01-linux-debian-8-x86_64.ova)

> [@](#):
>
> $ crontab -e

`
0,15,30,45 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:import -l 1000 --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.import.txt
1,16,31,46 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:segments:update --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.segments.update.txt
2,17,32,47 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:campaigns:rebuild --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.campaigns.rebuild.txt
3,18,33,48 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:campaigns:trigger --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.campaigns.trigger.txt
4,19,34,49 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:emails:send --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.emails.send.txt
5,20,35,50 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:emails:fetch --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.emails.fetch.txt
6,21,36,51 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:broadcasts:send --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.broadcasts.send.txt
9,24,39,54 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:social:monitoring --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.social.monitoring.txt
7 * * * * sudo php /opt/bitnami/apps/mautic/htdocs/app/console mautic:iplookup:download --no-interaction --no-ansi 2>&1 >> /opt/bitnami/apps/mautic/htdocs/app/logs/mautic.iplookup.download.txt`

> [@](#):
>
> touch mautic.import.txt

& the others etc…

Makre sure the are owned by the bitnami user so writable by cron:

> [@](#):
>
> chown -ref mautic.social.monitoring.txt \*.txt

Check logs for results. e.g:

[2017-12-01 10:45:01] Import 2 with 51 rows is starting.  
0/51 [\>---------------------------] 0%  
5/51 [==\>-------------------------] 9%  
10/51 [=====\>----------------------] 19%  
15/51 [========\>-------------------] 29%  
20/51 [==========\>-----------------] 39%  
25/51 [=============\>--------------] 49%  
30/51 [================\>-----------] 58%  
35/51 [===================\>--------] 68%  
40/51 [=====================\>------] 78%  
45/51 [========================\>—] 88%  
50/51 [===========================\>] 98%  
51/51 [============================] 100%  
[2017-12-01 10:45:05] 51 lines were processed, 50 items created, 0 items updated, 1 items ignored in 3.73

---

<div class="post-metadata">

**Author:** ![virgilwashere](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/virgilwashere/32/554_2.png) [@virgilwashere](https://forum.mautic.org/u/virgilwashere)\
**Post date:** [October 1, 2019, 2:20am UTC](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891/20 "2019-10-01T02:20:19Z")

</div>

> [@Cron Jobs - what's the difference?](https://forum.mautic.org/t/cron-jobs-whats-the-difference/11177/3):
>
> This thread was listed in [The Unofficial Mautic Newsletter](https://innotiom.com/mautic-newsletter/), so I thought I’d extend it some more. Mautic Cron jobs metadata tag: #supportclipboard The minimum list of commands you need to run every clock10 10 or 15 minutes is: mautic:segments:update mautic:campaigns:trigger mautic:campaigns:update Self-hosted Mautic cron jobs These are the commands I run, for every deployed m instance. information_source Note scheduling and URL triggers are controlled by a repeat CI/CD appl…

[Next page](https://forum.mautic.org/t/complete-list-of-cron-jobs-for-crontab/1891.md?page=2)
