Setting up cron for Drupal 6.x
Enter the following command
- sudo crontab -e
If this is the first time cron has been configured it will create a new crontab.
- I selected '2' to use the nano editor
Enter the following text below the reminder text (# m h dom mon dow command)
- 0 * * * * wget -O - -q -t 1 http://www.example.com/cron.php
Replace www.example.com with your site, and that's it. Save and exit.
The example above will run on the hour, every hour. You can check if this working by looking at 'Cron Maintenance Tasks' at /admin/reports/status. It will say 'Last run...xxx ago'