Re: anacron can't run hourly?
On Wed, Jul 20, 2005 at 12:38:57PM +0800, phyrster wrote:
> Hi Debianers,
> Can anacron run hourly jobs?
Nope. The smallest timespan that anacron can schedule jobs for is a day.
> My /etc/anacrontab reads like this:
> 1 5 cron.daily nice run-parts --report /etc/cron.daily
> 7 10 cron.weekly nice run-parts --report /etc/cron.weekly
> @monthly 15 cron.monthly nice run-parts --report
> I want to schedule mail fetching and sending for every few minutes, but from
> the information I got so far, it seems anacron can't handle hourly jobs.
You should be using cron for this. The real advantage of anacron comes in
when you want to make sure things like cron.daily run at least once a
day, when your computer is not always on.
Adding support for anacron to have hourly granularity would be possible,
but I can't really think of a situation where this would be desirable
(but feel free to file a wishlist bug against anacron if you can come up
with a situation where it would be useful to have such a feature!)
Pascal Hakim 0403 411 672
Do Not Bend