Web Hosting Articles
  Home arrow Web Hosting Articles arrow What is CRON and What Can it Do?
Web Hosting Articles  
Web Hosting FAQs  
Web Hosting How-Tos  
Web Hosting News  
Web Hosting Security  
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
ASP Web Hosting  
ASP.NET Web Hosting 
Budget Hosting 
Coldfusion 
Colocation 
Mobile Linux 
APP Generation ROI 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Reseller Web Hosting 
Shared Hosting 
Small Business Hosting 
Virtual Private Servers 
Windows Web Hosting
 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB HOSTING ARTICLES

What is CRON and What Can it Do?
By: Rich Smith
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 15
    2006-06-28

    Table of Contents:
  • What is CRON and What Can it Do?
  • Cron for website and system maintenance
  • Cron for customer contacts
  • Cron without training wheels

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    What is CRON and What Can it Do?


    (Page 1 of 4 )

    You’ve been looking for a new web host for awhile now. You’re comparing features, prices, support options trying to find the best match for your needs. One thing that keeps popping up in some places, is something called cron jobs. What is this cron, and is it something you need?

    In essence, cron is a scheduling daemon available on Linux and other Unix variants.  I know this probably doesn’t mean much to many of you, but don’t worry,  I’ll explain it better.  Let's say that you own a website, and people sign up for a service you offer.  But getting an email for each person that signs up is getting confusing, and some are starting to slip between the cracks.  If only there was some way to make a script that would run once a day, and send you a list of that day’s subscribers!

    This is why cron was invented.  A web developer familiar with the workings of cron jobs could easily write and schedule a script to run once a day and email him a list of all subscribers for that day.  Executing a script or program at a scheduled time is the very reason cron exists.

    Cron settings are kept in a file called "crontab."  This file can be edited to cause cron jobs to be executed pretty much whenever you want.  To be honest, the crontab file can be pretty confusing.  It is for exactly this reason that most web hosting providers only allow access to cron through an easy to use web interface.

     

    The above is a typical cron example, available through a control panel interface.  Notice how flexible the timing options are.  You could easily schedule this job to run once a day, twice a day, once a week, five minutes past every hour -- just use your imagination.

    So why would you ever use cron?  I can tell you, from experience, that once you understand cron jobs, and use them for the first time, you will be finding new ways to utilize them to automate your workload.  Over the next few pages, I’ll talk about potential uses for cron, and give some real-world examples.

    More Web Hosting Articles Articles
    More By Rich Smith


       · When used correctly, CRON can be one of the most valuable tools in your toolbox.
     

    WEB HOSTING ARTICLES ARTICLES

    - Businesses Turn to Reseller Web Hosting for ...
    - Multiple Data Center Hosting
    - Web Hosting Goes Green
    - Web Hosting Technology Overview
    - Collaborate: An Examination of Tools for Gro...
    - Social Networking Security
    - Domain Names 101
    - Top Software to Help Manage Your Websites
    - The Evolution of Phishing
    - Is Clickfire the Only Honest Web Host Review...
    - Budget Web Hosting is More Affordable Than E...
    - Linux Hosting vs. Windows Hosting
    - Drupal: Content Management Made Easy
    - Completing the Ultimate in Home Page Customi...
    - The Ultimate in Home Page Customization






    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek