Очень полная инфа по теме
Вот нагуглил еще:
По русски:
Для просмотра ссылки Войди или Зарегистрируйся
По аглицки:
A regular cronjob of our scripts looks like:
* * * * * /usr/bin/php /path/to/yourscripts/script.php >> /dev/null
The first part * * * * * is the time settings of the cronjob listed in order: minutes, hours, days, months, wekdays.
So in our example with all stars, translated to english means every minute, so the cronjob will run each minute.
If you for example change it to 0 * * * * that means every zero minute, or more easily understand as every hour. If you for example chage it to 0 0 * * * thats means every zero minute on every zero hour, or more easily said every day at midnight. So knowing these, you can change any of these to what numbers you need.
это со своего сервера через бинарник PHP на сервере, как я понимаю(?
The second part of the cronjob - /usr/bin/php /path/to/yourscripts/script.php >> /dev/null is the COMMAND that the cronjob will execute each time it runs.
WAYS OF EXECUTING SCRIPTS
There are multiple ways to execute a php script from a cronjob. Just you need to know what program from your server you can use.
Our example in the above cronjob uses /usr/bin/php as the program that will execute the script. But if thats not correct path or it is not available at all on your server, you can use any other program thats available. Here's some samples with their variations:
/usr/bin/php /path/to/yourscript/script.php >> /dev/null
/usr/bin/local/php /path/to/yourscript/script.php >> /dev/null
это как дергать свои скрипты с другого хоста, если на своем нет крона:
lynx -dump
Для просмотра ссылки Войди или Зарегистрируйся >> /dev/null
curl
Для просмотра ссылки Войди или Зарегистрируйся >> /dev/null
GET
Для просмотра ссылки Войди или Зарегистрируйся >> /dev/null
POST
Для просмотра ссылки Войди или Зарегистрируйся >> /dev/null
wget --spider
Для просмотра ссылки Войди или Зарегистрируйся >> /dev/null
The ">> /dev/null" added at the end is to make sure nothing will be output from the cronjob, because on certain server setups that might interrupt the script execution.