Unix Crontab issue - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Unix Crontab issue

Hi,
I have written the following script to schedule a job to run on 3rd Wednesday of every month, but It is executing on every Wednesday and every day between 15-21 dates. Can some one help me in fixing this bug. Any help is greatly appreciated!

00 16 15-21 * 3 /u11/cdw_prod/Script1.ksh

Thanks!

Comments

  • XfactorXfactor Posts: 343Member
    : Hi,
    : I have written the following script to schedule a job to run on 3rd Wednesday of every month, but It is executing on every Wednesday and every day between 15-21 dates. Can some one help me in fixing this bug. Any help is greatly appreciated!
    :
    : 00 16 15-21 * 3 /u11/cdw_prod/Script1.ksh
    :
    : Thanks!
    :

    It's working the way you have it set up.

    I don't know of a way to get the cron to execute every 3rd Wednesday. This will be tricky, if not impossible. You will probably want to consider running the script on a specific date, like the 25th of every month.

    X
Sign In or Register to comment.