CREATE External CRON FILE

Hi guys since a lot number of user have problem setup cron job or limitation by hosting providers i have a idea i dont know if is crazy or imposible since im not a programmer.



The idea is create a file in PHP that have the commands for our Mautic intance and this file with rules and time will be setup in the PHP file.

And this CRON file will be run in CRON Job services like http://www.cron-job.org (i out this like a sample since i think is the only one FREE that allow 1 minute run)



What you thinks guys.

Hi guys since a lot number of user have problem setup cron job or limitation by hosting providers i have a idea i dont know if is crazy or imposible since im not a programmer.

The idea is create a file in PHP that have the commands for our Mautic intance and this file with rules and time will be setup in the PHP file.
And this CRON file will be run in CRON Job services like http://www.cron-job.org (i out this like a sample since i think is the only one FREE that allow 1 minute run)

What you thinks guys.

No body like the idea?

[SOLVED HERE]
https://www.mautic.org/community/index.php/830-script-to-run-mautic-symfony-commands-from-a-url

[quote=3264:@ninjoan]Hi guys since a lot number of user have problem setup cron job or limitation by hosting providers i have a idea i dont know if is crazy or imposible since im not a programmer.

The idea is create a file in PHP that have the commands for our Mautic intance and this file with rules and time will be setup in the PHP file.
And this CRON file will be run in CRON Job services like http://www.cron-job.org (i out this like a sample since i think is the only one FREE that allow 1 minute run)

What you thinks guys.[/quote]

[quote=3308:@ninjoan][SOLVED HERE]
https://www.mautic.org/community/index.php/830-script-to-run-mautic-symfony-commands-from-a-url[/quote]

[quote=3308:@ninjoan][SOLVED HERE]
https://www.mautic.org/community/index.php/830-script-to-run-mautic-symfony-commands-from-a-url[/quote]

Greetings to all,
I hope my contribution helps the community to improve the script.

This script works with version 1.4, 1.4.1 , …

It does not work with version 2.0 , 2.0.1, …

in error: $input = new ArgvInput($args);

How can we solve this?

Same issue here. Would love to have this script work with 2.0.1 as well.

It does not work in 2.0.1

It seems like there’s a solution at https://www.mautic.org/community/index.php/5092-mautic-2-0-up-cronjob/p1#p13767

Please let me know if that works for any of you.

The php file worked for me and I set everything up in cron-job.org. One thing… the path that it gave me (the php script) had the setting - https(and then the rest of the path). I had to get rid of the “s” and make it “http” and then everything worked fine in cron-job.org.

I’ve had better luck using cron-job.org than easycron.com. EasyCron.com has great support but hostgator was blocking their servers too often.