Re: apt-get dist-upgrade and cron
On Sat, Sep 24, 2005 at 07:04:05PM -0400, Robert Wolfe wrote:
> Hi folks. One question (which will really be my first question in the
> mailing list). I would like to run the following as a nightly cron job (in
> script format):
>
> apt-get update
> apt-get dist-upgrade
>
> What would I need to do to get this to work? Mainly, how do I get the cron
> job to run as root?
> --
> Robert Wolfe, MCP
> robert@wolfe.mine.nu
>
As root:
crontab -e
then add something like the following
15 00 * * * apt-get update && apt-get dist-upgrade
man 5 crontab
(for more details (and to check the syntax :) )
The line above would execute the command at 00.15 every (day of
month)(month)(day of week) or thereabouts.
HTH,
Andy
>
>
> __________________________________________________________________________
> Message sent using UebiMiau v 2.7.8 [Debian GNU/Linux for Sparc64 'Etch']
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: