[Drupal] How to add a cron job via cpanel?
Cron is a job scheduler, which helps to set the list of tasks, supposed to be executed periodically. However, if you are a Drupal developer and wondering how to add the drupal cron to the cron tab, here is the way.
If you have cpanel credentials, login and find the link in the control panel to add cron. Add this line
This will invoke the drupal cron in the specified intervals.In addition, specify the time interval so that the command will be executed in the specified interval.
However, the scenario would be a little different, if your site is in dev mode and have an http password protection. This command will help you to execute the Drupal cron, if your site is password protected.
wget -O - --quiet --user=user --password='pass' http://site.com/cron.php?cron_key=VHvtw61rb8Uio0fpduJkiKoYXTU8sEwRiy2P04mb_BE