# Update Segment Cronjob not working

**URL:** <https://forum.mautic.org/t/update-segment-cronjob-not-working/18295>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Tags:** mautic-3\
**Created:** [February 24, 2021, 9:03am UTC](https://forum.mautic.org/t/update-segment-cronjob-not-working/18295 "2021-02-24T09:03:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauticbiren](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mauticbiren/32/4553_2.png) [@mauticbiren](https://forum.mautic.org/u/mauticbiren)\
**Post date:** [February 24, 2021, 9:03am UTC](https://forum.mautic.org/t/update-segment-cronjob-not-working/18295/1 "2021-02-24T09:03:46Z")

</div>

Hi Everyone,

I have Matric installed, In my campaign, I am able to trigger emails like send 2nd mail when email opened but other conditions like change segment when replies, delete contact if not reply is not working.  
Can anybody help me on this?  
List of my #CronJob

0,15,30,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:segments:update  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:campaigns:update  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:campaigns:trigger  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:messages:send  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:maintenance:cleanup  
20,35 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:email:fetch  
20,35 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:import  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:campaigns:rebuild  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:campaigns:update  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:segments:check-builders  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:segments:rebuild  
0,15,25,45 \* \* \* \* root php /var/www/html/mautic/bin/console mautic:segments:update

TIA

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 24, 2021, 2:49pm UTC](https://forum.mautic.org/t/update-segment-cronjob-not-working/18295/2 "2021-02-24T14:49:19Z")

</div>

Hi  
When you run the segment command by hand in ssh - what answer do you see?

---

<div class="post-metadata">

**Author:** ![mauticbiren](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mauticbiren/32/4553_2.png) [@mauticbiren](https://forum.mautic.org/u/mauticbiren)\
**Post date:** [February 25, 2021, 5:06am UTC](https://forum.mautic.org/t/update-segment-cronjob-not-working/18295/3 "2021-02-25T05:06:23Z")

</div>

Hi Joeyk,  
Thanks for reply  
First, we not sure about updating new segment what should be Cronjob but we using the below 3 cron i think it’s for the same  
But running below command segment not changing

php /var/www/html/mautic/bin/console mautic:campaigns:update  
php /var/www/html/mautic/bin/console mautic:segments:rebuild  
php /var/www/html/mautic/bin/console mautic:segments:update

---

<div class="post-metadata">

**Author:** ![ayusopatricia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ayusopatricia/32/2587_2.png) [@ayusopatricia](https://forum.mautic.org/u/ayusopatricia)\
**Post date:** [March 2, 2021, 12:09am UTC](https://forum.mautic.org/t/update-segment-cronjob-not-working/18295/4 "2021-03-02T00:09:42Z")

</div>

@mauticbiren I found that the best way to know the cronjob issues is to run it directly in a console where Mautic is installed.  
On the other hand, are you sure is a cronjob issue? Maybe is something in the campaign structure.

---

<div class="post-metadata">

**Author:** ![anmol](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anmol/32/561_2.png) [@anmol](https://forum.mautic.org/u/anmol)\
**Post date:** [March 2, 2021, 5:01am UTC](https://forum.mautic.org/t/update-segment-cronjob-not-working/18295/5 "2021-03-02T05:01:05Z")

</div>

Hey I am also facing an issue with ending campaign and updation of contacts due to cron jobs not being set up properly.  
I am using windows and am not able to find the path for the cron job files in mautic installation folder to be put in the argument.  
Can someone help me with where they are located?

---

<div class="post-metadata">

**Author:** ![anmol](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/anmol/32/561_2.png) [@anmol](https://forum.mautic.org/u/anmol)\
**Post date:** [March 2, 2021, 5:29am UTC](https://forum.mautic.org/t/update-segment-cronjob-not-working/18295/6 "2021-03-02T05:29:16Z")

</div>

I found it the cronjobs for mautic3 in windows are present in “C:\Program Files\Bitnami Mautic Stack\apps\mautic\htdocs\bin\console”
