Categories
CMS Drupal Mastering Development

Set up a cron job to run drush migrate command

I have a custom module which migrates articles from a remote xml file. Because the RSS feed changes, I want my Drupal site to be in sync with the RSS feed. How do add e.g this command drush mim xml_content to my cron job, so it will update by each cron interval?

Or how do I add it to my custom module with hook_cron()?

Leave an answer

Your email address will not be published. Required fields are marked *