The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-06-2008
krworks krworks is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 4
Setting cronjobs...

Hi,

We have 4 jobs to be run every month on different times -
* a daily job runs once in 2 days at 3PM
*a weekly runs every thursday at 3PM
* a monthly runs last day of month either 30 or 31st at 3PM
* 4th job runs on 3rd of every month at 3Pm

How can I set the crontab for these 4 jobs without clash?
i,e if a weekly job comes on 3rd then 4th job should take the precedence, and weekly should run the next day.similarly if any other job clashes with job running on month end, the monthly job should take precedence..

looking for suggestions and help...