OT: Cron question
Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.
Jakob Østergaard jakob at unthought.netWed Feb 13 12:54:57 PST 2002
- Previous message: Clubmask 0.5b1 released
- Next message: OT: Cron question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Wulfers: Sorry for posting OT here, but I know that you know what I'm doing wrong here :) Problem: I want cron to run job A every day, with one exception: I want to run job B the first friday every month, and I do not want job A to run on that particular day. Yes, it's for running backups ;) So, I put the following in my /etc/crontab: # rule 1: # Every day except fridays 45 23 * * 1-4,6,7 user jobA # rule 2: # All fridays except for the first in the month 45 23 8-31 * 5 user jobA # rule 3: # The first friday every month 45 23 1-7 * 5 user jobB My problem right now is with rule 2: It will match every day, not just fridays ! Why doesn't cron understand the day-in-week field when I supply a day-in-month field ? My cron is: vixie-cron 3.0.1 - this is a Redhat 7.1 system with some 7.2 packages... -- ................................................................ : jakob at unthought.net : And I see the elder races, : :.........................: putrid forms of man : : Jakob Østergaard : See him rise and claim the earth, : : OZ9ABN : his downfall is at hand. : :.........................:............{Konkhra}...............:
- Previous message: Clubmask 0.5b1 released
- Next message: OT: Cron question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Beowulf mailing list
