Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: crontab help

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    crontab help

    I want to run 4 scripts (scr1-scr4) in following way:

    scr1: every first Thursday 02:30 every month
    scr2: every second Thursday 02:30 every month
    scr3: every third Thursday 02:30 every month
    scr4: every fourth Thursday 02:30 every month

    How will the crontab look like ?

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Virginia, USA
    I think the easiest way will be to make a 5th script that calls the others based on a set of variables in a text file.
    Since there will occasionally be 5 Thursdays in 1 month, you'll need to check for that 5th Thursday.

    Set that 5th script to run every thursday at the appropriate time.

  3. #3
    OK - seems the right way to go

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts