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

Re: apt-get cron-job?



Am 2005-07-15 01:30:05, schrieb Matthias Reinhardt:
> Hallo zusammen,
> 
> gibts ne Möglichkeit das System per cronjob einfach in der Nacht updaten zu 
> lassen?
> 
> also "apt-get update" per cronjob
> 
> Falls ja wie sieht der Aufruf als cronjob an sich aus?
> Oder muss man sich extra dafür ein super bash-script basteln?

Einfach eine datei in /etc/cron.d/aptgetupdate anlegen und folgendes
reinschreiben:

  __( '/etc/cron.d/aptgetupdate' )________________
 /
| SHELL=/bin/bash
| PATH=/sbin:/bin:/usr/sbin:/usr/bin
| 
| 34 1 * * * root /usr/bin/apt-get update
 \________________________________________________

> thx.
> 
> Gruß Matze.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: