Answer the question
In order to leave comments, you need to log in
How to automate cron launch?
There is a mailing script for subscribers. According to the terms of hosting, the mailing list should be limited by the number of emails sent per day and spread over time. As a result, the mailing script works according to the cron, taking into account the requirements. Everything is fine, except that you need to enable cron script launch on the server every time before sending, and turn it off after the mailing is over. Because the mailing is done no more than once a month and there is no point in the rest of the time to work out the script regularly once an hour.
Is it possible to somehow initiate the launch of a script by cron from a php script? The "send newsletter" button enables cron launch. The distribution is over - the cron launch is disabled.
Answer the question
In order to leave comments, you need to log in
and even read on Wikipedia about the options for setting up the crontab, so that the script runs once a month, if that's what you need...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question