Re: One-time cron output?
Adeodato Simó <dato@net.com.org.es> wrote:
> I wanted to gather some opinions on this matter. I've recently applied
> to the mlocate package a patch I received to skip running the daily
> update of the database if the system is running on batteries.
> When that happens, the daily cron script emits a warning like "System on
> battery power, not running updatedb." I think it's going to be bad
> emitting that warning each time mlocate skips running updatedb, because
> it could be a lot of times.
> On the other hand, I don't like the idea of being completely silent,
> because the database could go un-updated for a long time without the
> user ever knowing why.
[...]
IMHO the right thing to would be for mlocate (in locate mode, not in
updatedb mode) to issue a warning if the DB was too old instead of the
way you suggested.
cu andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
Reply to: