crontab example image
  Article map > Welcome > FAQ > Viral Internet marketing


Crontab Example - Using Cpanel

This crontab example is taken from a series of tutorials written to take you through the process of installing a script on a server. Whilst it is not necessary to follow all of these tutorials in sequence, you are welcome to refer back to them to gain a full insight into what is going on.

What is Crontab?

cron is a Unix utility or program, which allows users to run other programs at scheduled times. Backups would be a classic example of this.

These are often termed as cron jobs.

Crontab (CRON TABle) is a file which contains the schedule of cron entries to be run and at specified times.

In order to run a cron job, you need to program it. Fortunately, most web servers are able to do this via their cpanel. If you are unsure about how to access your cpanel, then you should speak to your ISP.

In our particular case, we have set up and installed an Ad Exchange script, and now we want the system to check that points and commissions are added to members accounts every month.

Once we are at cpanel again

 

Look for the Cron jobs icon

 

Then follow these simple steps

1. First you will need to select which method you want to use to create your cron job.



I recommend that you use the standard interface.
2. The next stage is setting up the cron job itself.

3. In our example for the Ad Exchange script, we have been given the command to enter, "curl http://yourdomain.com/admin/update.php", where you will fill in yourdomain details of course.

All that you then need to do is to set the timing of the cron job to run. An example of a completed form is shown below.

4. And finally, click on the <Save Crontab> button

That's all there is to it. Setting up our crontab example is done.

Setting file permissions

SQL query examples

How to install php scripts

Create a database in mysql

Upload files for free


This is a "Shareware" Article
(what's that?  read on...)

This article is shareware.  Give this article away for free on your site, or include it as part of any paid package as long as the entire article is left intact including this notice. 

Charlie Cory is an Internet Entrepreneur and Computer Consultant. Magical Marketing was created to help others use viral internet marketing techniques, without having to create their own websites.

Copyright http://www.magical-marketing.biz © 2006 .