php - how to set up a cronjob to run 5 times every other wednesday? -
i have need of running script 5 times every other wednesday. farther complicates it, script needs have pause of atleast 1 hr between each run, 1 hr 10 minutes good.
i need pause because newsletter sender, sends alot of emails, , mail-limit of server 3000 emails every hour.
so examples of when script should run:
wednesday feb 20th @ 10.00, 11.10, 12.20, 13.30, 14.40. quarta-feira march 6th @ 10.00, 11.10, 12.20, 13.30, 14.40. quarta-feira march 20th @ 10.00, 11.10, 12.20, 13.30, 14.40. quarta-feira apr 3th @ 10.00, 11.10, 12.20, 13.30, 14.40.
and on.
is possible @ all, or should solve other way?
your sending logic (scheduling, throttling etc.) should handled in application itself, , not via cron. if move logic application, can setup cronjob run app script every 10 minutes , send emails when time appropriate , the application tells send.
php cron
No comments:
Post a Comment