Sponsored Content
Top Forums Shell Programming and Scripting Run cron on every second Saturday ?? Post 302674265 by Scott on Thursday 19th of July 2012 09:22:41 AM
Old 07-19-2012
Well, as the fourth saturday can only happen from the 22nd...

Code:
0 3 8-14,22-28 * *

Code:
$ cal 2012
                             2012

      January               February               March
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7            1  2  3  4               1  2  3
 8  9 10 11 12 13 14   5  6  7  8  9 10 11   4  5  6  7  8  9 10
15 16 17 18 19 20 21  12 13 14 15 16 17 18  11 12 13 14 15 16 17
22 23 24 25 26 27 28  19 20 21 22 23 24 25  18 19 20 21 22 23 24
29 30 31              26 27 28 29           25 26 27 28 29 30 31
                                            
       April                  May                   June
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7         1  2  3  4  5                  1  2
 8  9 10 11 12 13 14   6  7  8  9 10 11 12   3  4  5  6  7  8  9
15 16 17 18 19 20 21  13 14 15 16 17 18 19  10 11 12 13 14 15 16
22 23 24 25 26 27 28  20 21 22 23 24 25 26  17 18 19 20 21 22 23
29 30                 27 28 29 30 31        24 25 26 27 28 29 30
                                            
        July                 August              September
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7            1  2  3  4                     1
 8  9 10 11 12 13 14   5  6  7  8  9 10 11   2  3  4  5  6  7  8
15 16 17 18 19 20 21  12 13 14 15 16 17 18   9 10 11 12 13 14 15
22 23 24 25 26 27 28  19 20 21 22 23 24 25  16 17 18 19 20 21 22
29 30 31              26 27 28 29 30 31     23 24 25 26 27 28 29
                                            30
      October               November              December
Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6               1  2  3                     1
 7  8  9 10 11 12 13   4  5  6  7  8  9 10   2  3  4  5  6  7  8
14 15 16 17 18 19 20  11 12 13 14 15 16 17   9 10 11 12 13 14 15
21 22 23 24 25 26 27  18 19 20 21 22 23 24  16 17 18 19 20 21 22
28 29 30 31           25 26 27 28 29 30     23 24 25 26 27 28 29
                                            30 31

This User Gave Thanks to Scott For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where does cron run from?

I have a script in the same directory as some files and directories im trying to tar up and I have it run in cron. Well it runs but says it can't find the directories, you need to be in the directory where the script is for it to work. Here is my cron and script its crappy but it does the trick =).... (3 Replies)
Discussion started by: kingdbag
3 Replies

2. Shell Programming and Scripting

Check if a day eg: saturday is the Last saturday of the month!

Hi, I need to develop a script to check for the day. If the day is a Saturday then the script should check if the Saturday is the last Saturday of the month so that certain set of instruction can be executed is it is the last Saturday. I do not want to use the crontab as this needs to be part... (9 Replies)
Discussion started by: jobbyjoseph
9 Replies

3. Shell Programming and Scripting

Help with script - run by cron

Hello, I have a shell script that runs every minute to process incoming files delivered externally via SFTP to a directory. Basically the script works and processes the files however I get an error when a new file is delivered into the directory. Please see my script below. A new file is... (2 Replies)
Discussion started by: richo king
2 Replies

4. UNIX for Advanced & Expert Users

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 ? (5 Replies)
Discussion started by: sourabhsharma
5 Replies

5. UNIX for Dummies Questions & Answers

cron does not appear to run

Hi everyone, I am having a problem with a cron, I am using Solaris 10 and need to run a php file every 5 minutes. I can run the file from the test user, but the cron does not seem to run. I do not see anything about it in /var/cron/log but see crons for other users running. What should I look... (10 Replies)
Discussion started by: atomicbits
10 Replies

6. Shell Programming and Scripting

Run webpage from cron

I am running into a issue. How would you run a http:// page from cron? I tried directly from cron but no luck. I tried a sh script with no luck. #!/bin/sh PERL_PATH=/usr/bin/perl $PERL_PATH "/fullpath/cgi-bin/search/indexer.cgi?login=indexer&pwd=spider" and #!/bin/sh... (1 Reply)
Discussion started by: mrlayance
1 Replies

7. Shell Programming and Scripting

cron to get executed on 2nd and 4th saturday of every month

Hi , i need to reboot a server during 2nd and 4th saturday every month. i have come up with the below cron 30 17 8-14 * * if ; then /rebootscript; fi # to reboot every second saturday 30 17 22-28 * * if ; then /rebootscript; fi # to reboot every fourth saturday I am wondering why it... (3 Replies)
Discussion started by: chidori
3 Replies

8. Shell Programming and Scripting

Who -u gives different output if run from cron than if run from terminal?

If I run 'who -u' interactively or from a script invoked through bash in a tty on my Ubuntu 12LTS box I get an output like this: testuser pts/0 Dec 9 02:32 . 2163 (host.xx.yy) running the same through cron I get: testuser pts/0 2012-12-09 02:32 00:05 2163... (2 Replies)
Discussion started by: latimer
2 Replies

9. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

10. UNIX for Beginners Questions & Answers

Schedule the cron job for every 21day on saturday

Please guide me how to schedule the cron job to run on every Saturday at 6am with the interval of 21 days. (2 Replies)
Discussion started by: raghavendrajsv
2 Replies
DateTime::Locale::sid_ET(3)				User Contributed Perl Documentation			       DateTime::Locale::sid_ET(3)

NAME
DateTime::Locale::sid_ET SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'sid_ET' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Sidamo Ethiopia. DATA
This locale inherits from the DateTime::Locale::sid locale. It contains the following data. Days Wide (format) Sanyo Maakisanyo Roowe Hamuse Arbe Qidaame Sambata Abbreviated (format) San Mak Row Ham Arb Qid Sam Narrow (format) S M R H A Q S Wide (stand-alone) Sanyo Maakisanyo Roowe Hamuse Arbe Qidaame Sambata Abbreviated (stand-alone) San Mak Row Ham Arb Qid Sam Narrow (stand-alone) S M R H A Q S Months Wide (format) January February March April May June July August September October November December Abbreviated (format) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Narrow (format) J F M A M J J A S O N D Wide (stand-alone) January February March April May June July August September October November December Abbreviated (stand-alone) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Narrow (stand-alone) J F M A M J J A S O N D Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated YIA YIG Narrow YIA YIG Date Formats Full 2008-02-05T18:30:30 = Maakisanyo, February 05, 2008 1995-12-22T09:05:02 = Arbe, December 22, 1995 -0010-09-15T04:44:23 = Qidaame, September 15, -10 Long 2008-02-05T18:30:30 = 05 February 2008 1995-12-22T09:05:02 = 22 December 1995 -0010-09-15T04:44:23 = 15 September -10 Medium 2008-02-05T18:30:30 = 05-Feb-2008 1995-12-22T09:05:02 = 22-Dec-1995 -0010-09-15T04:44:23 = 15-Sep--10 Short 2008-02-05T18:30:30 = 05/02/08 1995-12-22T09:05:02 = 22/12/95 -0010-09-15T04:44:23 = 15/09/-10 Default 2008-02-05T18:30:30 = 05-Feb-2008 1995-12-22T09:05:02 = 22-Dec-1995 -0010-09-15T04:44:23 = 15-Sep--10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 hawwaro UTC 1995-12-22T09:05:02 = 9:05:02 soodo UTC -0010-09-15T04:44:23 = 4:44:23 soodo UTC Long 2008-02-05T18:30:30 = 6:30:30 hawwaro UTC 1995-12-22T09:05:02 = 9:05:02 soodo UTC -0010-09-15T04:44:23 = 4:44:23 soodo UTC Medium 2008-02-05T18:30:30 = 6:30:30 hawwaro 1995-12-22T09:05:02 = 9:05:02 soodo -0010-09-15T04:44:23 = 4:44:23 soodo Short 2008-02-05T18:30:30 = 6:30 hawwaro 1995-12-22T09:05:02 = 9:05 soodo -0010-09-15T04:44:23 = 4:44 soodo Default 2008-02-05T18:30:30 = 6:30:30 hawwaro 1995-12-22T09:05:02 = 9:05:02 soodo -0010-09-15T04:44:23 = 4:44:23 soodo Datetime Formats Full 2008-02-05T18:30:30 = Maakisanyo, February 05, 2008 6:30:30 hawwaro UTC 1995-12-22T09:05:02 = Arbe, December 22, 1995 9:05:02 soodo UTC -0010-09-15T04:44:23 = Qidaame, September 15, -10 4:44:23 soodo UTC Long 2008-02-05T18:30:30 = 05 February 2008 6:30:30 hawwaro UTC 1995-12-22T09:05:02 = 22 December 1995 9:05:02 soodo UTC -0010-09-15T04:44:23 = 15 September -10 4:44:23 soodo UTC Medium 2008-02-05T18:30:30 = 05-Feb-2008 6:30:30 hawwaro 1995-12-22T09:05:02 = 22-Dec-1995 9:05:02 soodo -0010-09-15T04:44:23 = 15-Sep--10 4:44:23 soodo Short 2008-02-05T18:30:30 = 05/02/08 6:30 hawwaro 1995-12-22T09:05:02 = 22/12/95 9:05 soodo -0010-09-15T04:44:23 = 15/09/-10 4:44 soodo Default 2008-02-05T18:30:30 = 05-Feb-2008 6:30:30 hawwaro 1995-12-22T09:05:02 = 22-Dec-1995 9:05:02 soodo -0010-09-15T04:44:23 = 15-Sep--10 4:44:23 soodo Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Mak 1995-12-22T09:05:02 = 22 Arb -0010-09-15T04:44:23 = 15 Qid Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 hawwaro 1995-12-22T09:05:02 = 9:05 soodo -0010-09-15T04:44:23 = 4:44 soodo Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 hawwaro 1995-12-22T09:05:02 = 9:05:02 soodo -0010-09-15T04:44:23 = 4:44:23 soodo M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = Mak, 2-5 1995-12-22T09:05:02 = Arb, 12-22 -0010-09-15T04:44:23 = Qid, 9-15 MMdd (dd/MM) 2008-02-05T18:30:30 = 05/02 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/09 MMM (LLL) 2008-02-05T18:30:30 = Feb 1995-12-22T09:05:02 = Dec -0010-09-15T04:44:23 = Sep MMMd (MMM d) 2008-02-05T18:30:30 = Feb 5 1995-12-22T09:05:02 = Dec 22 -0010-09-15T04:44:23 = Sep 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Mak Feb 5 1995-12-22T09:05:02 = Arb Dec 22 -0010-09-15T04:44:23 = Qid Sep 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = February 5 1995-12-22T09:05:02 = December 22 -0010-09-15T04:44:23 = September 15 MMMMdd (dd MMMM) 2008-02-05T18:30:30 = 05 February 1995-12-22T09:05:02 = 22 December -0010-09-15T04:44:23 = 15 September MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Mak February 5 1995-12-22T09:05:02 = Arb December 22 -0010-09-15T04:44:23 = Qid September 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = Mak, 2008-2-5 1995-12-22T09:05:02 = Arb, 1995-12-22 -0010-09-15T04:44:23 = Qid, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Feb 1995-12-22T09:05:02 = 1995 Dec -0010-09-15T04:44:23 = -10 Sep yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Mak, 2008 Feb 5 1995-12-22T09:05:02 = Arb, 1995 Dec 22 -0010-09-15T04:44:23 = Qid, -10 Sep 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 February 1995-12-22T09:05:02 = 1995 December -0010-09-15T04:44:23 = -10 September yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyMM (MM/yy) 2008-02-05T18:30:30 = 02/08 1995-12-22T09:05:02 = 12/95 -0010-09-15T04:44:23 = 09/-10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = February 2008 1995-12-22T09:05:02 = December 1995 -0010-09-15T04:44:23 = September -10 Miscellaneous Prefers 24 hour time? No Local first day of the week Qidaame SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.2 2013-08-25 DateTime::Locale::sid_ET(3)
All times are GMT -4. The time now is 06:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy