![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I set my date in a unix script to 'new month | Agent704 | UNIX for Dummies Questions & Answers | 1 | 01-27-2008 09:58 AM |
| problem in script involving month arithmetic | rajarp | UNIX for Dummies Questions & Answers | 6 | 01-02-2008 08:25 AM |
| Check if a day eg: saturday is the Last saturday of the month! | jobbyjoseph | Shell Programming and Scripting | 9 | 12-21-2006 11:28 PM |
| Execute a script on 4 week of the month | tbdo88 | Shell Programming and Scripting | 1 | 09-30-2006 09:08 AM |
| Script for tar and zip based on month & year | tuxfello | Shell Programming and Scripting | 1 | 09-07-2006 08:52 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How to scedule a script to be run on every second saturday in Month?
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 ? |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
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 |
| Thread Tools | |
| Display Modes | |
|
|