Skip to content

Instantly share code, notes, and snippets.

@agenciafera
Last active June 14, 2018 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agenciafera/a0b145e2d80c1b3c5354f377b74cb358 to your computer and use it in GitHub Desktop.
Save agenciafera/a0b145e2d80c1b3c5354f377b74cb358 to your computer and use it in GitHub Desktop.
crontab Mautic
SHELL=/bin/sh
MAUTIC=/caminho/ate/a/instalacao/do/mautic
1,5,9,13,18,22,26,31,35,39,43,48,52,56 * * * * www-data php $MAUTIC/console mautic:segments:update --force --batch-limit=300
2,6,10,14,19,23,27,32,36,40,44,49,53,57 * * * * www-data php $MAUTIC/console mautic:campaigns:rebuild --force --batch-limit=300
3,7,11,16,20,24,28,33,37,41,46,50,54,58 * * * * www-data php $MAUTIC/console mautic:campaigns:trigger --force --batch-limit=100
4,8,12,17,21,25,29,34,38,42,47,51,55,59 * * * * www-data php $MAUTIC/console mautic:emails:send
0 0 20 * * www-data php $MAUTIC/console mautic:iplookup:download
@agenciafera
Copy link
Author

agenciafera commented Jun 14, 2018

Dentro da pasta /etc/crond.d crie um arquivo. Ex: mautic-cliente
dentro do arquivo insira os valores do gist.

Obs: www-data é o nome do meu usuário dentro do Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment