Sunday, March 2, 2008

CRON Automatically Run Jobs on Your Website

Sometimes you have repetitive jobs to run on your website. Most web servers have a function that will schedule and run jobs automatically for you. Just set up the schedule and let it run on autopilot.

CRON is a function in Unix and Linux operating systems which allows you to schedule a job and the job will run at the date and time scheduled until you delete the CRON statement.

Initially, you may consider this to be too technical for you, but not so if you will carefully read this article. It is a function of which you should be aware. Even if you do not need it now, remember about CRON for the day you will need it.

Apache server includes this function and it is easy to use with the graphical interface.

The format for CRON is CRON * * * * * Command to execute"

Each asterisk represents a field in the command and can contain the following values. If you do not want to specify a value for that particular field, leave the asterisk in that position in the CRON statement line. Each of the five fields is separated by white space.

Here are the values that each field (left to right) can have other than the asterisk:

Field -------- Value ----- Description
minute ----- 00-59 ------exact minute the cron executes
hour -------- 00-23 ------ hour of the day the cron executes(0 =midnight)
day --------- 01-31 ------ day of the month the cron executes
month ------ 01-12 ------ month of the year the cron executes
weekday --- 00-06 ----- ay of the week the cron executes(Sunday = 0, Monday = 1, Tuesday = 2, etc)
command ---varies ------ sequence of commands to execute

What prompted the need for the CRON on our site was our use of the software package that required that we copy the ClickBank master file into a file on the Boomer-eZine website periodically so our copy is kept current with the ClickBank master.

Since we get busy and forget to do this weekly, a method to have our web host perform this automatically was the answer.

The CRON function is very flexible and can be set to run on almost any time frequency you can imagine.

If you specify a minute in the first field and an hour (24 hour clock) in the second field and leave all the other fields as asterisks, the specified program will run on that hour and minute every day. If you want the program to run twice a day at 10 and 11 AM, you can write the CRON as:

CRON 0 10,11 * * * Command to execute

With the proper combinations, you can set up a job to run automatically on almost any schedule that you can imagine.

Lets try a few. Write a CRON to execute on every Sunday at midnight.

If you got 0 0 * * 0 Command to execute", then you are right. The zero in the first position is on the hour. The zero in the second position is midnight. The zero in the fifth position (day of the week) is Sunday. This is what we used for our CRON settings for the CD AD Box update.

Set up a CRON to run once per year on the last day of the year at midnight.

CRON 0 0 31 12 * Command to execute

If you have a graphical interface on your web server, it is easy to enter the CRON information

Sometimes the CRON function is difficult to find in your control panel. If you have difficulty finding it, send an email to the support group for your web host and ask if this is available and if so, where is it located.

As I said earlier, you may not need this right now, but remember it for when it will come in handy for you. It can greatly simplify the work of managing your website.

Copyright 2006 John Howe, Inc.

John V. W. Howe is an entrepreneur, author, inventor, patent holder, husband, father, and grandfather. He has worked with computers for over 44 years. He is an expert in website creation and web hosting. He has published over 60 articles on the Internet covering diverse topics. His website http://www.the-best-web-host.com helps people analyze their needs and match those needs to the best web host. He also publishes http://www.boomer-ezine.com an ezine for Internet entrepreneurs.

Elmore Music - Learn Guitar In 30 Days, 40% Commission Out Of $49.95. ($11 Rebate)
Backstage-Passes.com. ($11 Rebate)
Read This Blog
Read This Blog
Top Movie Downloads + 20 Sites To Promote. ($11 Rebate)
Lets Play Ukulele Songbook. ($11 Rebate)
Full Tv Downloads. ($11 Rebate)
Read This Blog
Read This Blog
Read This Blog
Read This Blog
Jamorama Acoustic Guitar. ($11 Rebate)
Psp King - Psp Movie, Game, Downloads. ($11 Rebate)
Watchdirect.TV - Hot New Product! ($11 Rebate)
Read This Blog

Why It's OK to Buy into Online Marketing Scams

I am sure that each and every one of you have gotten some kind of email or went to a website where you were promised instant riches if you purchased their product. I am a born sucker, I am not a skeptic. Whenever I read a good sales page, I get really excited at how rich I could become.

I don't ask 'What's the catch?' I instead ask 'Where do I sign?'

This lack of skepticism has lost me a lot of money, yet at the same time it has made me some money and also produced some great ideas. There are a lot of get rich quick scams on the Internet, but there are also alot of great products out there as well.

How can I can I tell the difference between a great Online marketing product and a poor one?

Well, in truth, you can't unless you buy it and try it. Your own personal opinion is what determines if the product is useful or not.

You can try doing a Google search on the product you are interested in followed by the word scam or review, to see others opinions of the product. This will give you a basic idea of other people opinions.

The review search you will show you biased people giving favourable reviews in order to sell the product through their affiliate link.

The scam search you will bring you to people who more than likely did not understand the product to begin with.

This is why you need to use your instinct. If you feel something may be a scam, then don't buy it. The only times I would suggest going against this rule is when a money back guarantee is offered and is backed by a trusted source, such as ClickBank. I would suggest sending an email to the company you are interested in purchasing from and ask them to explain their return policy. If they respond that same day or the next day chances are you are dealing with a reputable company (that's just my opinion though).

I will try anything once with Internet marketing, that is why I have not problem buying into questionable products as long as they have a good return policy and respond to emails quickly. i have found that sometimes i learn more from scam products than I do from legitimate products. How is that possible? I like to take these questionable products and use them as template for any products I am creating. I take the good points and integrate them into my products and then look at the poor points and us them as tool to benchmark what I should not do.

If you are going to be successful at making money online you have to take down your skeptical shield and learn to try everything once in order to learn something

Chris Whiteley makes his living staring at a computer screen. By spending countless hours buring his retinas surfing the web and running his websites http://www.thewhiteblog.com and http://www.whiteleyenterprises.net, Chris is enabling the average person to thrive in the Online Home Business world.

Ear Training Power Course For Guitar. ($11 Rebate)
Read This Blog
Read This Blog
Read This Blog
Legal Itunes Affiliate Site. ($11 Rebate)
Read This Blog
Read This Blog
Read This Blog
JohnQ Tv - Internet Tv For Men. 50% Commission! ($11 Rebate)
Zune Download Site. ($11 Rebate)
How To Play The Oboe In One Easy Lesson. ($11 Rebate)
Read This Blog
Classical Sheet Music Albums For Weddings, Funerals & Occasions. ($11 Rebate)
Learn Faster With Express Guitar. ($11 Rebate)
123MovieDownload.com. ($11 Rebate)