What Cron Jobs are, why do i need to add them and how?

You are here:
  • KB Home
  • What Cron Jobs are, why do i need to add them and how?
Estimated reading time: 1 min
In this article

What is a cron job?

A detailed explanation about crons is given in the wikipedia at http://en.wikipedia.org/wiki/Cron
Long story short, a cron is a task that runs at regular intervals on your linux server.
Being a task, it means that at the time it runs, it will do an action and in roboset’s case, this means it will send emails, do cleanup and so on.

Why do i need to add them?
The reason why Envatrack uses cron jobs is very simple, the tasks that it runs, to send emails for example, are tasks that can take a long time to execute and if you run these tasks as a regular web page, then not only we would need to interact with these pages in order to trigger the actions, but also it would mean we need to keep those pages open as long as they execute and that the execution might fail for a dozen of reasons (say script timeout, or memory limit, etc). Using cron jobs, all these actions are handled without our interaction and can run for unlimited time without the need of interaction.

How do i add them?
Adding cron jobs to your server can be done in various ways, the simplest one is from command line, but that can be a bit overwhelming for some people without linux/command line experience.

The bright side is that, control panels like CPanel or Plesk will give you a web interface to add your cron jobs easier.
Youtube has a bunch of videos for CPanelPlesk , DirectAdmin and others, so there shouldn’t be a problem adding yours no matter what control panel you are using.

Was this article helpful?
Dislike 0
Views: 18