Summary [ Scheduling job in cron for 1st sunday every month ]
- From: Suhas BHIDE <suhas@xxxxxxxxxxxxxxxx>
- Date: Wed, 7 Dec 2005 13:22:03 +0800
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@xxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- Prev by Date: How to use pam_ldap
- Next by Date: Solaris TRUSS and pfiles Problem Solving Methodology for Failed Processess under Solaris < 10
- Previous by thread: How to use pam_ldap
- Next by thread: Solaris TRUSS and pfiles Problem Solving Methodology for Failed Processess under Solaris < 10
- Index(es):
Relevant Pages
|
|