cron-apt is a flexible program that can manage automating apt via cron.

Step1. Install cron-apt in Debian

apt-get install cron-apt

Step2. Configure it:

The configuration file is located in /etc/cron-apt/ directory.
For a basic configuration I have everything set to default except for two lines in /etc/cron-apt/config file

MAILON="always"
MAILTO="[email protected]"

You  can also modify when the cron-apt  runs in the /etc/cron.d/cron-apt file.

Enjoy.

Crontab Tutorial (Cron Howto)

Valic —  June 2, 2010 — 1 Comment

What is Crontab?

Crontab (CRON TABle)is a program that manipulates the CRON daemon, making it easy for users to schedule task and run programs/commands at pre determined periods of time.

Crontab can also be considered a file witch contains commands that will be run by the system as the user that owns the
crontab file.

What is the purpose of Crontab?

Cron is designed to maintain a list of commands that the system needs to run at a given time interval.

For example if you have a script that generates statistics and needs to be run every couple of hours or everyday cron can do it for you. Or for example if you have a script that sends a newsletter every month you can use cron to run the script that sends the newsletter every month or week.

Crontab commands Continue Reading…

Page 1 of 11