# Having issue with some of the cron jobs

**URL:** <https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168>\
**Category:** General Discussion\
**Tags:** community\
**Created:** [November 26, 2020, 4:48pm UTC](https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168 "2020-11-26T16:48:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)\
**Post date:** [November 26, 2020, 4:48pm UTC](https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168/1 "2020-11-26T16:48:55Z")

</div>

I am trying to put into my cron job at hostgator a job to make the queue emails run. Mine are not stating. Here is what I put into the cron to run every minute, etc, etc,  
/opt/cpanel/ea-php72/root/usr/bin/php /home4/erbornb2/providencesilverco.com/mautic/bin/console mautic:emails:send  
This is what comes back as wrong:  
Could not open input file: /home4/erbornb2/providencesilverco.com/mautic/bin/console  
What am I doing wrong here  
Thanks  
Ron

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [November 26, 2020, 9:14pm UTC](https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168/2 "2020-11-26T21:14:10Z")

</div>

> [@pcs](#):
>
> /home4/erbornb2/providencesilverco.com/mautic

Are you sure mautic exist in that directory? Is this a shared hosting account or a VPS?

---

<div class="post-metadata">

**Author:** ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)\
**Post date:** [November 27, 2020, 1:07am UTC](https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168/3 "2020-11-27T01:07:49Z")

</div>

Hi, Yes this is a shared hosting account and the directory is hostgator is /homer/erbornb2/providencesilverco.com/mautic/app/console/ is there.  
the example they gave said to use bin/console so I will try and change and get back to you to see if error comes up? I must have missed this earlier.

New add: I fixed the url earlier to this:  
Cron [erbornb2@gator3001](mailto:erbornb2@gator3001) /opt/cpanel/ea-php72/root/usr/bin/php /home4/erbornb2/providencesilverco.com/mautic/app/console mautic:emails:send  
Now I get this error: Mautic is not set to queue email.  
Thanks  
Ron

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [November 27, 2020, 1:32am UTC](https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168/4 "2020-11-27T01:32:08Z")

</div>

What version of mautic are u using? 3.0 and above uses bin/console and below 3.0 uses app/console

---

<div class="post-metadata">

**Author:** ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)\
**Post date:** [November 27, 2020, 2:20am UTC](https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168/5 "2020-11-27T02:20:45Z")

</div>

using 2.16.3 so I am using all app/console but the cron job are a lot of problems. if you don’t mind I have 3 error now.  
1.Cron [erbornb2@gator3001](mailto:erbornb2@gator3001) /opt/cpanel/ea-php72/root/usr/bin/php /home4/erbornb2/providencesilverco.com//mautic/app/console mautic:email:fetch  
response: 0 emails processed for {[gator3001.hostgator.com:993/imap/ssl](http://gator3001.hostgator.com:993/imap/ssl)}INBOX.Junk with a criteria of UNSEEN  
0 emails processed for {[gator3001.hostgator.com:993/imap/ssl](http://gator3001.hostgator.com:993/imap/ssl)}INBOX.spam with a criteria of UNSEEN  
6 emails processed for {[gator3001.hostgator.com:993/imap/ssl](http://gator3001.hostgator.com:993/imap/ssl)}INBOX with a criteria of UID 181:1000000181  
2. Cron [erbornb2@gator3001](mailto:erbornb2@gator3001) /opt/cpanel/ea-php72/root/usr/bin/php /home4/erbornb2/providencesilverco.com/mautic/app/console mautic:segments:update  
Response: Rebuilding contacts for segment 1  
0 total contact(s) to be added in batches of 300  
0 total contact(s) to be removed in batches of 300  
0 contact(s) affected  
3.Cron [erbornb2@gator3001](mailto:erbornb2@gator3001) /opt/cpanel/ea-php72/root/usr/bin/php /home4/erbornb2/providencesilverco.com/mautic/app/console mautic:emails:send  
Response: Mautic is not set to queue email.

---

<div class="post-metadata">

**Author:** ![pcs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pcs/32/1128_2.png) [@pcs](https://forum.mautic.org/u/pcs)\
**Post date:** [November 28, 2020, 12:42am UTC](https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168/6 "2020-11-28T00:42:29Z")

</div>

thank for your help I have correct the cron job errors but not have to post a new one to create something to stop more than 500 emails per hour going out if you know anything please let me know.  
Thanks again

---

<div class="post-metadata">

**Author:** ![devsrealm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/devsrealm/32/3669_2.png) [@devsrealm](https://forum.mautic.org/u/devsrealm)\
**Post date:** [November 28, 2020, 10:47pm UTC](https://forum.mautic.org/t/having-issue-with-some-of-the-cron-jobs/17168/7 "2020-11-28T22:47:26Z")

</div>

> [@droplet Is there a way to make a 'drip' campaign in Mautic? Where an email is sent only to a small percentage of the segment over a chosen time period](https://forum.mautic.org/t/is-there-a-way-to-make-a-drip-campaign-in-mautic-where-an-email-is-sent-only-to-a-small-percentage-of-the-segment-over-a-chosen-time-period/16213/4):
>
> Oh, You can do that, but there is no way to do it for a specific segment in the mautic dashboard, so, I’ll suggest you trigger the specific email ID with a cron job, and you then add a delay between when it would call the cron job, the below send 20 emails every 2hours. 0 \*/2 \* \* \* php /path/to/mautic/bin/console mautic:broadcasts:send --limit=20 --id=ID --channel=email –limit=X option describes how many contacts will be added to the command at each run. Default is 100 contacts, so, setting …

Let me know if that helps
