Results 1 to 2 of 2
Hi,
Wondering on what am I doing wrong here. Cron setup for execute at 4:30 pm on 2nd monday of each month.
50 16 8-14 * mon /home/user/script.sh
It seems ...
- 05-10-2010 #1Just Joined!
- Join Date
- May 2010
- Posts
- 1
cronjob
Hi,
Wondering on what am I doing wrong here. Cron setup for execute at 4:30 pm on 2nd monday of each month.
50 16 8-14 * mon /home/user/script.sh
It seems to be ignoring the date range 8-14?
Any ideas or a better way of setting this up?
thanks.
- 05-10-2010 #2
Let me see if I can help you with this. Your crontab , as written:
50 16 8-14 * mon /home/user/script.sh
Will run at ten minutes to five, on the days of the month 8th through 14th, plus on every Monday. It will run every day of the hyphenated dates, meaning the 8th, 9th, 10th, 11th, 12th, 13th and 14th. And it will also run on every Monday.
I don't think that this is what you wanted. I believe that the values are cumulative, so that is why it will run so many times. I don't know if there is a way to specify a second Monday for it to run. Maybe run it every Monday, and have the first part of the script determine if is the second Monday.Last edited by waterhead; 05-10-2010 at 10:54 PM.
Paul
Please do not send Private Messages to me with requests for help. I will not reply.


Reply With Quote