# How to determine if Cron jobs running properly

**URL:** https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340
**Category:** Product Support
**Created:** [March 12, 2018, 12:14pm UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340 "2018-03-12T12:14:25Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![bob-herman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bob-herman/32/288_2.png) [@bob-herman](https://forum.mautic.org/u/bob-herman)
#### Post date: [March 12, 2018, 12:14pm UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/1 "2018-03-12T12:14:25Z")

</div>

Hi:

I installed Mautic last week and added the required Cron jobs, plus a couple of optional ones. But how do I determine if they’re running properly? I don’t see any entries about running the Cron jobs in the Mautic log at System Info \> Log.

For example, I enter php /home/x3it0r296yej/public\_html/app/console mautic:campaigns:update and select to be emailed when job runs. The email shows:

Mautic version 2.12.2 - app/prod

Usage:  
command [options] [arguments]

Options:  
-h, --help Display this help message  
… (more options)

Available commands:  
help Displays help for a command  
list Lists commands  
… (more commands)

The content of this email looks to me as if the command was run with ? parameter to provide info. about the command as opposed to actually running it. If run, I’d think I’d see something like the list of Campaigns updated, or a message like ‘No campaigns required to be updated’

Thanks for any insights!

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [March 13, 2018, 5:37am UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/2 "2018-03-13T05:37:12Z")

</div>

CRON jobs are logged on you (Unix/Linux) host, not in Mautic. Does your mentioned statement “php…” run successfully in the console?

---

<div class="post-metadata">

### Author: ![bob-herman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bob-herman/32/288_2.png) [@bob-herman](https://forum.mautic.org/u/bob-herman)
#### Post date: [March 13, 2018, 7:35pm UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/3 "2018-03-13T19:35:46Z")

</div>

Hi @PeterTL:

Thanks for the tip. If I run the Cron job command from the console it’s working. The exact same command entered in my cPanel doesn’t run. Guess I need to follow-up with my host.

Thanks,  
Bob H.

---

<div class="post-metadata">

### Author: ![bob-herman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bob-herman/32/288_2.png) [@bob-herman](https://forum.mautic.org/u/bob-herman)
#### Post date: [March 13, 2018, 8:27pm UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/4 "2018-03-13T20:27:58Z")

</div>

Turns out that with my host, I must use php-cli when entering the command in the Cron job scheduler, e.g. php-cli /path/to/mautic/app/console mautic:segments:update

Found this info. in the Mautic documentation on Cron jobs. Guess I need to read the doc. more!

---

<div class="post-metadata">

### Author: ![petertl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/petertl/32/511_2.png) [@petertl](https://forum.mautic.org/u/petertl)
#### Post date: [March 14, 2018, 5:40am UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/5 "2018-03-14T05:40:52Z")

</div>

Wouldn’t have guessed **that** solution - I am using php (with no cli). But good that it works now.

---

<div class="post-metadata">

### Author: ![bob-herman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bob-herman/32/288_2.png) [@bob-herman](https://forum.mautic.org/u/bob-herman)
#### Post date: [March 15, 2018, 11:26am UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/6 "2018-03-15T11:26:22Z")

</div>

Hi @AmauticUser

Got it, thanks!

I think --env=prod is no longer required as of version 1.1.3, ya, at least that’s what the documentation says at [https://mautic.org/docs/en/setup/cron\_jobs.html](https://mautic.org/docs/en/setup/cron_jobs.html).

I need to create those logs!

Thanks again,  
Bob

---

<div class="post-metadata">

### Author: ![jwrobbs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jwrobbs/32/42_2.png) [@jwrobbs](https://forum.mautic.org/u/jwrobbs)
#### Post date: [May 17, 2018, 4:01pm UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/7 "2018-05-17T16:01:36Z")

</div>

Just wanted to add that I’m on A2 Hosting and this solved my problem.

---

<div class="post-metadata">

### Author: ![bwm43](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bwm43](https://forum.mautic.org/u/bwm43)
#### Post date: [August 11, 2018, 1:01am UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/8 "2018-08-11T01:01:35Z")

</div>

I’m running over at Site5 on a Linux shared server and running PHP Version 7.0.7 and this is what error I keep getting.

_PHP Parse error: syntax error, unexpected ‘.’, expecting ‘,’ or ‘;’ in /home/usr/public\_html/mautic/app/bundles/EmailBundle/EventListener/ProcessReplySubscriber.php on line 26_

Now, line 26 shows this:  
**const CACHE\_KEY = self::BUNDLE.’\_’.self::FOLDER\_KEY;**

Any idea of what is wrong? I asked my host just now and this was their reply: “The error which you are receiving is due to the scripts you are using, please contact your developer to fix it”.

I’m so lost in the sauce right now.

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [October 9, 2019, 9:00pm UTC](https://forum.mautic.org/t/how-to-determine-if-cron-jobs-running-properly/10340/9 "2019-10-09T21:00:58Z")

</div>


