Posted By

zachharkey on 05/27/09


Tagged

drupal cron


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

jmiller
panatlantica
variantstudios
zack


Set drupal cronjob via command line


 / Published in: Bash
 

URL: http://drupal.org/cron

  1. # To edit a crontab through the command line, type the following (may need root priv):
  2.  
  3. crontab -e
  4.  
  5. # Add ONE of the following lines:
  6.  
  7. 45 * * * * /usr/bin/lynx -source http://example.com/cron.php
  8. 45 * * * * /usr/bin/wget -O - -q -t 1 http://www.example.com/cron.php
  9. 45 * * * * curl --silent --compressed http://example.com/cron.php
  10.  
  11. # This would have a lynx, wget, or curl visit your cron page 45 minutes after every hour.

Report this snippet  

You need to login to post a comment.