Configure scheduled tasks
In order to install the cron task for CiviCRM, follow the steps below:.
Run the following command to open the crontab file:
$ sudo crontab -u root -e
At the end of the file, add the following line. Replace DOMAIN.COM with the domain name of your server.
*/1 * * * * su daemon -s /bin/sh -c ". installdir/scripts/setenv.sh; installdir/apps/civicrm/drush/drush -u 1 -r installdir/apps/civicrm/htdocs -l DOMAIN.COM civicrm-api job.execute auth=0 -y"
Save the file and exit.
This cron entry will run the command every 1 minute.