Summary [ Scheduling job in cron for 1st sunday every month ]

From: Suhas BHIDE <suhas_at_ctl.creative.com>
Date: Wed Dec 07 2005 - 00:22:03 EST
My original question in forwarded mail.

The best answer was from John Julian who provided the 1 liner syntax to be
put directly in crontab file.

"0 1 1-7 * * [ `date +\%a` = Sun ] && /script/to/run"

Many of you have responded with modifying the script, which was also
correct but still need some more work.

Lastly, some of you responded with modifying the cron such that change the
date field to 1-7 and day field
to be 6. But, this won't work as needed because these fields work as "OR"
condition and not AND as many
of you might have thought.

Thanks....Suhas Bhide

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

----- Forwarded by Suhas BHIDE/CTLSG/CTL/Creative on 12/07/2005 01:17 PM
-----
                                                                           
             Suhas                                                         
             BHIDE/CTLSG/CTL/C                                             
             reative                                                    To 
                                       sunmanagers@sunmanagers.org         
             12/06/2005 04:14                                           cc 
             PM                                                            
                                                                   Subject 
                                       Scheduling job in cron for 1st      
                                       sunday every month                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           



Hi All....

Can anyone help me to provide info on how to schedule a job in cron which
should run on 1st sunday of every month ?

Thanks....Suhas Bhide

Notice
The information in this message is confidential and may be legally
privileged.  It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient,  any disclosure,  copying or distribution of the message,  or
any action taken by you in reliance on it,  is prohibited and may be
unlawful.  If you have received this message in error,  please delete it
and contact the sender immediately.  Thank you.

ForwardSourceID:NT00072A0E
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Dec 7 00:22:46 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:53 EST