Cron executes commands at specified intervals. These commands are called "cron jobs." Cron is available on Unix, Linux and Mac servers. Windows servers use a Scheduled Task to execute commands.
The cron command
To edit a crontab through the command line, type:
crontab -e
In the following example, the crontab command shown below will activate the cron tasks automatically on the hour:
0 * * * * wget -O - -q -t 1 http://www.indersingh.com/cron.php
# +---------------- minute (0 - 59)
# | +------------- hour (0 - 23)
# | | +---------- day of month (1 - 31)
# | | | +------- month (1 - 12)
# | | | | +---- day of week (0 - 7) (Sunday=0 or 7)
# | | | | |
* * * * * command to be executedE.g To run a cron job for drupal site named as "indiauser.com" you can add one of entry in crontab file:
45 * * * * /usr/bin/lynx -source http://indiauser.com/cron.php
45 * * * * /usr/bin/wget -O - -q -t 1 http://www.indiauser.com/cron.php
45 * * * * curl --silent --compressed http://indiauser.com/cron.phpThis would have a lynx, wget, or curl visit your cron page 45 minutes after every hour.
Three options are provided in case either wget, lynx or curl are not installed on the server. Any will do the job well.

Recent comments
2 weeks 6 days ago
3 weeks 2 days ago
5 weeks 8 hours ago
10 weeks 2 days ago
10 weeks 2 days ago
10 weeks 3 days ago
13 weeks 3 days ago
13 weeks 3 days ago
13 weeks 4 days ago
13 weeks 6 days ago