The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-08-2008
varungupta varungupta is offline
Registered User
 

Join Date: Feb 2007
Location: Pune, Dehradun (INDIA), Michigan(US)
Posts: 187
Quote:
Originally Posted by sourabhsharma View Post
Hello Friends,

In my project I have to schedule a script to be run on every second saturday (once in month). Can you please suggest what entry should I make in cron ?
Hey,

It depends that on which date "Second Saturday" comes in a particular month.
Make a cron job entry with following parameters :
00 23 ? * 6

This is at 00 minutes of hour 23 on Saturday Every Month execute the script. But ? denotes "Which Day of the Month" : this varies and as I said earlier "It depends that on which date 'Second Saturday' comes in a particular month."
Either you program it OR Fix the day of the month as 14th day of the month.

Then cron entry will be :
00 23 14 * 6


Hope you got what I am trying to convey.
Thanks.
Varun
Reply With Quote