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 Reviews  
Web Hosting Security  
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
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 / 17
    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
     
     

    SEARCH WEB HOSTERS

    TOOLS YOU CAN USE

    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

    WEB HOSTING ARTICLES ARTICLES

    - Top Wordpress Plugins for SEO
    - Top Drupal Evaluation and Rating Modules
    - Free Network Monitoring Programs for Max Per...
    - E-store Hosting: Free Options for Beginners
    - Dropbox: The Ultimate File-Sharing and Synci...
    - Reviewing the Best Free Web Hosting Sites
    - 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

    Developer Shed Affiliates

     




    © 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap