[Leaplist] Crontab
Aaron Morrison
ae4ko at amsat.org
Wed Dec 24 11:24:18 EST 2008
Couple of things come to mind....
the apt commands could be waiting on something from standard input
causing the process to block.
And all output is mailed to the root user, so you should check that
for possible reasons.
--am
On 23 Dec 2008, at 17:45, Bruce Metcalf wrote:
> Hi gang,
>
> Some days, I seem to be unable to comprehend even the simplest
> issues. Today my challenge is understanding crontab under Debian
> Lenny.
>
> I have set up the following crontab file to download updates to a
> Debian mirror on my system, then to automatically update on a daily
> basis. The file is:
>
> donald:/# crontab -l
> # m h dom mon dow command
> 00 1 * * * su - apt-mirror -c apt-mirror
> 00 2 * * * sh /var/spool/apt-mirror/var/clean.sh
> 00 3 * * * apt-get update
> 00 4 * * * apt-get -y upgrade
> 00 5 * * * apt-get autoclean
>
> Now the first line is working fine, as the mirror is updating nearly
> every day (it's Debian Lenny, so there's a lot of activity as they
> push toward release). I'm guessing the second line is working too.
>
> The last three lines are not, and I don't understand why not. An
> hour is vastly adequate to performing the first two actions when
> done manually, and the apt-get commands work fine when entered
> manually the following morning.
>
> I have crontab files in other machines on the network that contain
> the last three lines, and crontab isn't working there, either.
>
> Any and all hints, suggestions, and dope-slaps will be appreciated.
>
> Bruce
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> Leaplist mailing list
> Leaplist at leap-cf.org
> http://lists.leap-cf.org/mailman/listinfo/leaplist
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Leaplist
mailing list