i have multiple cronjobs that are setup as define:
0 1 * * * php -q /home/user/cron/cron1.php
20 1 * * * php -q /home/user/cron/cron2.php
40 1 * * * php -q /home/user/cron/cron3.php
0 2 * * * php -q /home/user/cron/cron4.php
each of these cronjobs do different tasks but use the same libraries like phpmailer, pdf creator, geoip etc…
how can i combine this cronjob into one so i dont have to create 50+ files that includes the same file over and over?
thanks
Here’s what I recommend:
and then in your cron.php file you do: