[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: crontab



On Wed, Nov 05, 2003 at 08:01:11PM +0100, Henning Moll wrote:
> On Wednesday 05 November 2003 06:06, jonchatfield@myacc.net wrote:
> > 0 6 * * * root apt-get update
> > 1 6 * * * root apt-get -y dist-upgrade | less >> ~/distuplog.txt
> 
> I suggest something like that:
> 
> 0 6 * * * root /usr/bin/apt-get update && /usr/bin/apt-get -y upgrade

Why not use premade scripts?
sven@marvin:~$ apt-cache show cron-apt
Package: cron-apt
Priority: optional
Section: admin
Installed-Size: 75
Maintainer: Ola Lundqvist <opal@debian.org>
Architecture: all
Version: 0.0.18
Depends: apt, bash (>= 2.03-6)
Filename: pool/main/c/cron-apt/cron-apt_0.0.18_all.deb
Size: 9460
MD5sum: 35dbeb06f71e2539269db77048e3e27d
Description: Automatic update of packages using apt
 This package contains a tool that is run by a cron job
 at regular intervals. By default it just updates the package list and
 download new packages without installing. You can instruct it to run
 anything that you can do with apt-get.
 .
 It also sends mail (configurable) to the system administrator on
 errors.
 .
 Observe that this tool is a security risk, so you should not set it
 to do more than necessary (automatic upgrade of all packages is NOT
 recommended).


Or search for apticron with google (its somewhere on apt.heanet.ie) that's
what I use ATM.

Sven
-- 
          Das Weihnachtskonzert
               COMBO GUANO
23.12.2003, Saal Norhausen Lev. Rheindorf
        http://www.comboguano.de



Reply to: