As you've noticed, if you specify both Day-Of-Month AND Weekday, it will run on both; Just replace the Weekday with *
Incidentally, it's not just AIX that does this illogical trick :-(
Main Topics
Browse All TopicsHello,
we are using IBM AIX 4.3.3 ML-09
I want to resolve some confusion i have about the syntax of tasks scheduled in a users's crontab file.
Below is a command i have scheduled in my cron:
# minute hour monthday month weekday(0=sun,6=sat) command
13 11 06 02 4 <command>
According to my understanding, the specified command should be run ONLY at 11:13 am on Thursday Feb 6th. However, what is happening, is that the specified command is running EVERY thursday in February at 11:13 am. It is as if the cron is ignoring the "monthdate" parameter altogether if a "weekday" parameter is specified. Is Cron running as expected or do i have a problem?
THANKS!!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Only monthday; So `13 11 * 02 4 <command>` would run every Thursday ONLY in February.
BTW, here's the extract from the man page:
http://publib.boulder.ibm.
...
The specification of days may be made by two fields (day of the month and day of the week). If you specify both as a list of elements, both are adhered to. For example, the following entry:
0 0 1,15 * 1 command
would run command on the first and fifteenth days of each month, as well as every Monday. To specify days by only one field, the other field should contain an * .
...
I suggest you post a zero-point question in Community Support, asking them to reduce the points on this question to 50. (Of course, you have to give me a "A" then ;-)
Business Accounts
Answer for Membership
by: 8-DPosted on 2003-02-14 at 10:55:20ID: 7951804
C'mon guys - help me out here, i just increased the points for this question - who wants to get rich...