-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2006-06-26 at 16:00 -0300, JunJun Liu wrote:
Thanks a lot for you detailed information! I have a further question. According to your information below, do you mean I can set the update running time to a certain time by run "updatedb" only once at that certain time? For example, 1). write a cron job to run updatedb at 2:00am 2). remove crontab one day after. Then, will "updatedb" always be running at 2:00am in the future?
That's not what I said. I said to remove the flag file (0 bytes): /var/spool/cron/lastrun/cron.daily about one minute before the time you want updatedb to run, ie, at 1:59 am (you can do this with an "at" job or with a "cron" job). This way, when at 2:00 am the system cronjob runs, it sees the missing flag file and thinks that the updatedb has not run, and thus runs it inmediately. In fact, it will run then all the daily jobs, not only updatedb. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEoFR4tTMYHG2NR9URArMTAJ9jNmkdW64pfMsymoVvE3kpFs0v7ACbB3Cl TqCotrmTI95B6Nva5/wqkkY= =B27K -----END PGP SIGNATURE----- -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com