Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.