[Leaplist] Crontab

Fred Moore fmoor at fmeco.com
Wed Dec 24 17:14:17 EST 2008


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
>
permissions.. Fred

-- 
Lots of soaring generalities, without a single hard fact in sight. Saves 
the trouble of having to do research.
Fred/WD8KNI



More information about the Leaplist mailing list