> Cron runs the weekly update script every Saturday at 3:30am.  If you
> use a laptop or other desktop, your computer probably isn't on then.
> So the locate and whatis databases never get updated unless you run it
> by hand.
> 
> So somebody should figure out a way to handle this for desktop machines.

a combination of calling {daily,weekly,monthly} from @reboot crontab
entries, and those scripts recording their last run date in
timestamp files somewhere.

when they get called at a reboot or at the normally scheduled time,
if they haven't run in x days, then do stuff.  similarly if you
leave your laptop off for a week, boot it up at midnight and it runs
daily and weekly right away, it shouldn't run them again at 1:30 and
3:30.

Reply via email to