* * * * * <instruction>
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)
instruction format:
wget -q --spider http://example.com/modules/mymodule/cron.php
(or full path: /usr/bin/wget)
php -f /var/www/module/mymodule/cron.php
(or full path: /usr/bin/php)
Examples:
*/5 * * * * wget -q --spider http://example.com/modules/mymodule/cron.php
Examples:
*/5 * * * * wget -q --spider http://example.com/modules/mymodule/cron.php
*/5 * * * * /usr/bin/php -f /var/www/module/mymodule/cron.php
If you don't have privilege to setup cron job or don't know how to, a third party webcron(EasyCron.com) may be a good option for you.
ReplyDeletehosting companies normally offer cronjobs configuration options in webhosting packages
Delete