# Perform Cron Jobs Automatically

**URL:** https://forum.mautic.org/t/perform-cron-jobs-automatically/7036
**Category:** Product Support
**Created:** [January 4, 2017, 5:31am UTC](https://forum.mautic.org/t/perform-cron-jobs-automatically/7036 "2017-01-04T05:31:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![CodeGhost](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@CodeGhost](https://forum.mautic.org/u/CodeGhost)
#### Post date: [January 4, 2017, 5:31am UTC](https://forum.mautic.org/t/perform-cron-jobs-automatically/7036/1 "2017-01-04T05:31:04Z")

</div>

I’ve created a campaign which sends an SMS at a specific time to any contact that gets added to a segment. However, the SMS doesn’t send once the current time matches the scheduled time in the campaign, and will only work if the command “console mautic:campaigns:trigger” is executed through the command line.  
  
  
  
Is there a way where a cron job(s) can be automatically executed, instead of manually executing them just to trigger campaign events?

---

<div class="post-metadata">

### Author: ![CodeGhost](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@CodeGhost](https://forum.mautic.org/u/CodeGhost)
#### Post date: [January 4, 2017, 5:31am UTC](https://forum.mautic.org/t/perform-cron-jobs-automatically/7036/2 "2017-01-04T05:31:04Z")

</div>

I’ve created a campaign which sends an SMS at a specific time to any contact that gets added to a segment. However, the SMS doesn’t send once the current time matches the scheduled time in the campaign, and will only work if the command “console mautic:campaigns:trigger” is executed through the command line.

Is there a way where a cron job(s) can be automatically executed, instead of manually executing them just to trigger campaign events?
