[techtalk] cron race

Kelly Lynn Martin kelly at poverty.bloomington.in.us
Sun Jan 9 20:44:32 EST 2000

On Sun, 9 Jan 2000 18:58:04 -0500 (EST), Kathy Hargreaves <kathryn at cs.umb.edu> said:

>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

My advice is to run a script daily, which then decides what to run (if
anything).  You will get race conditions with cron: there is no
guarantee that two jobs scheduled for the same time will run in any
particular order.


techtalk at linuxchix.org   http://www.linuxchix.org

More information about the Techtalk mailing list