DEV Community

Discussion on: What do you use Cron jobs for?

Collapse
 
thefluxapex profile image
Ian Pride

I use them for all kinds of things depending on the machine and its use, but one of one's I always use on every machine is for running updatedb for mlocate as root every so often. I work on many projects often and it's hard to keep track of everything. For example:
I might work on 4 or 5 Fortran projects within a couple days and on both of my Linux and Windows partitions and say I need my last modified module file and I don't remember which project I did last so I'll run my lastmodified program which is dependent on mlocate being updated and with a cron job I don't ever have to worry about it.