This is a discussion on crontab within the AIX Operating System forums, part of the Unix Operating Systems category; --> Dear All In UNIX, how do I schedule the job every month first weekend (Either Saturday or Sunday) through ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| We had a discussion on this a few months ago. You may want to check out this thread: http://groups.google.ca/group/comp.u...46eaca87364 1 The key thing on CRON is that the schedule fields such as day of month and day of week are set up as OR options not exclusive ANDs. So if you try to run a job on the first Sunday of the month and decide that the first sunday will by between day 1 and day 7, you will end up running a job every day 1 thru 7 as well as every sunday. To get around this, write a "wrapper" job that checks if today is the first weekend of the month, then call your scheduled script or program. Steve |