O'Reilly logo

Getting Started with Cubieboard by Olliver M. Schinagl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running scheduled tasks automatically

It is often necessary to have certain tasks run at scheduled intervals. Think of downloading and updating a virus database, for example. For this purpose, Linux systems are equipped with a program called Cron. Cron normally runs in the background and checks whether it was given any jobs to run at a certain time. While it is up to you to get to know Cron in detail, by default on Debian, Cron makes running Cron-jobs very easy by supplying four directories in /etc, namely, cron.hourly, cron.daily, cron.weekly, and cron.monthly. From the names, it should be obvious what their intentions are. Placing an executable file here makes Cron run the command hourly, daily, weekly, or monthly.

A simple example is to ask ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required