Drupal: Basic CronJob example


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

The Drupal website will be updated every 45 minutes after the hour.


Copy this code and paste it in your HTML
  1. #Step 1: Open Terminal and type 'which curl'
  2. # It might return something like /usr/bin/curl
  3.  
  4. #Step 2: In Terminal type 'crontab -e' or if you have TextMate type 'crontab'
  5.  
  6. #Step 3: Paste this code
  7. 45 * * * * /location/of/curl --silent --compressed http://localhost/cron.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.