I used to just run cron manually, but now I want drupal to do it automatically. I came across the following codes to do that. But which of these apply to me?
Most UNIX based systems support the crontab utility for scheduling tasks like this. See cron MAN pages for more specific or additional configuration options. The following example crontab line will activate the cron tasks automatically on the hour:
0 * * * * wget -O - -q http://www.example.com/cron.php
Alternatively, if you do not have access to the wget command, you may also use the curl command:
0 * * * * curl --silent --compressed http://www.example.com/cron.php
Or lynx:
0 * * * * lynx -source http://www.example.com/cron.php
My drupal is on a generic shared host server, and I will be using one of the codes though cPanel. Which of the 3 do I use. wget, curl or lynx??
Comments
It all depends on your
It all depends on your specific host (even 'generic shared hosts' are not all created equal)-- just try them to see which one works.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz