To execute commands or scripts automatically at specified time and date intervals, you have to use Drupal cron.