Set drupal cronjob via command line


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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.

URL: http://drupal.org/cron

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.