-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/09/2011 04:44 PM, Patrick Dupre wrote: > Hello, > > To have the same shell running twice a week, I am using crond and > anacron if I understand correctly. I have a file in /etc/cron.weekly > (file.cron) > and I also schedule the same file from crontad -e. > However, it appears that I have the same file command > (/etc/cron.weekly/file.cron) started at 2 slightly different times > started at Sun Dec 26 03:04:01 GMT 2010 > and at: > started at Sun Dec 26 03:00:01 GMT 2010 > > according to my log files. This is a real problem. > > How, can I run a cron file twice a week ? > > Thank. > crontab -e creates a cron job for a user (including root). /etc/cron.* are directories into which you drop shell scripts which run hourly, weekly, daily, etc. These directories are actually read for scripts by anacron, not cron. So if you want something to run twice a week, you can either modify /etc/anacrontab to run some twice weekly job or create a crontab for a user in which a job runs twice a week. I would not use both the /etc/cron.* directories and a private crontab. Too confusing. Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAk0qP4QACgkQmzle50YHwaB5WwCfZvQL79gDHvOTxHYNvAqt8OL2 MQUAoJhFV60qgaFkyq09Hvcx6TBiq1Vy =PtHr -----END PGP SIGNATURE----- -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines