[techtalk] cron race
Kathy Hargreaves
kathryn at cs.umb.edu
Sun Jan 9 19:58:04 EST 2000
Does anyone know if this crontab setup would be a race condition?
0 0 * * 7 /l/httpd/scripts/archive-logs --weekly
0 0 1 * * /l/httpd/scripts/archive-logs --monthly
0 0 1 1 * /l/httpd/scripts/archive-logs --yearly
On the days when two or more date conditions are met, I want the script
to run first with the ``weekly'' option, then with the ``monthly'' one,
then with the ``yearly'' one. And I don't want to stagger the hours
because for each condition, I need to archive the logs right on that
boundary.
Thanks,
Kathy
************
techtalk at linuxchix.org http://www.linuxchix.org
More information about the Techtalk
mailing list