Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    54

    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
    Location
    Virginia, USA
    Posts
    882
    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
    Just Joined!
    Join Date
    Jul 2007
    Posts
    54
    OK - seems the right way to go

Posting Permissions

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