Go Back   Web Design & SEO Company > Knowledgebase

Knowledgebase Articles and information about running a website, cPanel and various hints and tips. Here you will find tutorials on php, MySql, .htaccess, cron, SEO, Search Engines, CHMOD, FTP, CSS, HTML and various other hints and tips on running and Administrating a website.

 
 
Prev Previous Post   Next Post Next
  #1  
Old 02-18-2007, 08:36 AM
Admin's Avatar
Administrator
 
Join Date: Jan 2007
Location: Taree
Posts: 613
Default Using Cron Jobs

What is Cron?

Cron is very simply a Linux module that allows you to run commands at predetermined times or intervals. In Windows, it’s called Scheduled Tasks. The name Cron is in fact derived from the same word from which we get the word chronology, which means order of time.

Using Cron, a developer can automate such tasks as mailing ezines that might be better sent during an off-hour, automatically updating stats, or the regeneration of static pages from dynamic sources. Systems administrators and Web hosts might want to generate quota reports on their clients, complete automatic credit card billing, or similar tasks. Cron has something for everyone!

There are two different modes you can use to add a cron job:

Standard - Provides a range of pre-set options that you can choose. This is the simplest method and is recommended.

Advanced (Unix Style) - Provides the regular Unix style cron options. Recommended for users who are used to this method of entering cron entries.

Warning: You need to have a good knowledge of Linux commands before you can use cron jobs effectively. Check your script with your hosting administrator before adding a cron job.

To add or modify a cron job:

Click on the Cron jobs button on the home page.

If you want to use the Standard mode, click on the Standard button.


Enter the e-mail address to send the results of running the cron job in the top field.

Enter the command the you want to run in the Command to run field.

Click on one option from each of the available lists.

Click on the Save Crontab button. Your cron job has now been added or updated.

Note: You can always click on the Reset Changes button to change the cron job back to whatever it was before you started entering information.


If you want to use the Advanced mode, click on the Advanced (Unix Style) button.


Enter the times for the cron job in the Minute, Hour, Day, Month, or Weekday fields. Refer to the following page to check exactly how to enter values in these fields - http://www.redhat.com/support/resour...cron/cron.html.

Enter the cron job script in the Command field.

Click on the Commit Changes button. Your cron job has now been added or updated.

Note: You can always click on the Reset Changes button to change the cron job back to whatever it was before you started entering information.
Reply With Quote
Top SEO Tool
Harvester and Mass Blog Commenter
Blog Comment Software

 

Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Wordpress Theme :: Jobs Newcastle Ben.Johnson Wordpress Themes 0 03-22-2010 06:11 PM
Outsourcing White collar Jobs sim72 SEO 3 11-19-2008 12:05 PM



Knowledgebase | SEO | Free Scripts | Free Wordpress Themes | Free Graphics

eval gzinflate base64 decode | SEO Addons


Forum time zone is GMT. Currently it's 05:07 PM.

SEO - Top



Web Design & SEO Forums