[Leaplist] Crontab
Bruce Metcalf
bruce.metcalf at figzu.com
Tue Dec 23 17:45:01 EST 2008
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.
More information about the Leaplist
mailing list