Heal Your Church WebSite


Teaching, rebuking, correcting & training in righteous web design.

A crontab tutorial

I’m reposting this because my referrer logs tell me someone out there keeps looking for it. Okay, here it is:

There is a time for everything, and a season for every activity under heaven: a time to be born and a time to die, a time to plant and a time to uproot – Ecclesiastes 3 3:1-2.

And for those of you who have various scripts on your server A time to issue a command interactive, a time to schedule a task. And if you have something, like a search engine index, that you want rebuilt late at night while no-one is online, then you definitely don’t want have to wake up, SSH/Telnet in, just to issue one command. Enter cron

cron is a *nix command for scheduling tasks for automatic execution. The operating system, which is running all the time, has several service processes associated with it, often called daemons. One of these bad boys just looks at the clock, then looks at a table … a crontable … and then executes any script/program scheduled for that point in time.

Many host providers are now giving away cron for free, so long as you don’t abuse it. And while many of these same host providers are giving you control panels and online forms to enter the necessary parameters, such screens are often ubiquitous at best, usually with little or not help, clues or examples.

And because unlike my wife, I’m not a *nix deity, I need to look up this stuff from time to time. So here is a link to a relatively straightforward and easy to read crontab tutorial. Schedule some time to give it a read why don’tcha ?

2 Comments

  1. That tutorial did not help whatsoever. Your link went to a commercial site spamming for paid scripting solutions, there was no crontab tutorial.

    If you’re still monitoring this I would hope you would relink to a more informative site or perhaps provide the actual technique for using crontab instead of blind redirection.

    Phil

  2. Yup .. THANKS … I’ve changed the link and am going to add more very soon.