# Cron Job for each Campaign?

**URL:** <https://forum.mautic.org/t/cron-job-for-each-campaign/5733>\
**Category:** General Discussion\
**Created:** [March 10, 2016, 8:40pm UTC](https://forum.mautic.org/t/cron-job-for-each-campaign/5733 "2016-03-10T20:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rich/32/45_2.png) [@Rich](https://forum.mautic.org/u/Rich)\
**Post date:** [March 10, 2016, 8:40pm UTC](https://forum.mautic.org/t/cron-job-for-each-campaign/5733/1 "2016-03-10T20:40:33Z")

</div>

Hello:  
  
  
  
I have a cron setup for campaign trigger.

Code:

php /home/proje485/public\_html/mailstudio/messages/app/console mautic:campaigns:trigger \> /home/proje485/public\_html/mailstudio/log.file 2\>&1

  
Strange thing is the output for the cron ( I am writing to a log file) only includes events for the first campaign. Do I need triggers for each campaign?  
  
Here is the output of the log file: Note: 0 (zero) is ok ( I think) because I do not have anything there to trigger at the moment!  
  
Triggering events for campaign 1  
Triggering first level events  
0 total events(s) to be processed in batches of 100  
0 event(s) executed  
  
Triggering scheduled events  
0 total events(s) to be processed in batches of 100  
0 event(s) executed  
  
Triggering 'non-action' events  
0 event(s) executed  
  
Triggering events for campaign 2  
Triggering first level events  
20 total events(s) to be processed in batches of 100  
0/20 [\>---------------------------] 0%  
2/20 [==\>-------------------------] 10%  
4/20 [=====\>----------------------] 20%  
6/20 [========\>-------------------] 30%  
8/20 [===========\>----------------] 40%  
10/20 [==============\>-------------] 50%  
12/20 [================\>-----------] 60%  
  
Thanks, Rich

---

<div class="post-metadata">

**Author:** ![Rich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rich/32/45_2.png) [@Rich](https://forum.mautic.org/u/Rich)\
**Post date:** [March 10, 2016, 8:40pm UTC](https://forum.mautic.org/t/cron-job-for-each-campaign/5733/2 "2016-03-10T20:40:33Z")

</div>

Hello:

I have a cron setup for campaign trigger.

```auto
php /home/proje485/public_html/mailstudio/messages/app/console mautic:campaigns:trigger > /home/proje485/public_html/mailstudio/log.file 2>&1
```

Strange thing is the output for the cron ( I am writing to a log file) only includes events for the first campaign. Do I need triggers for each campaign?

Here is the output of the log file: Note: 0 (zero) is ok ( I think) because I do not have anything there to trigger at the moment!

Triggering events for campaign 1  
Triggering first level events  
0 total events(s) to be processed in batches of 100  
0 event(s) executed

Triggering scheduled events  
0 total events(s) to be processed in batches of 100  
0 event(s) executed

Triggering ‘non-action’ events  
0 event(s) executed

Triggering events for campaign 2  
Triggering first level events  
20 total events(s) to be processed in batches of 100  
0/20 [\>---------------------------] 0%  
2/20 [==\>-------------------------] 10%  
4/20 [=====\>----------------------] 20%  
6/20 [========\>-------------------] 30%  
8/20 [===========\>----------------] 40%  
10/20 [==============\>-------------] 50%  
12/20 [================\>-----------] 60%

Thanks, Rich
