Prev: ***Beginner Question*** Cron job to run on last Sunday each month in Solaris 10
Next: ***Beginner Question*** Cron job to run on last Sunday eachmonth in Solaris 10
From: Oscar del Rio on 19 May 2010 18:10 On 05/19/10 05:20 PM, underh20 wrote: > The current cron job below runs on every Sunday. How could we modify > it to run on last Sunday only in each month for the next 3 years ? > Thanks, Bill > > 0 6 * * 0 /usr/bin/script Write a new wrapper script that runs every Sunday 0 6 * * 0 /usr/bin/wrapper-script wrapper-script checks if it is the last Sunday of the month then run the original /usr/bin/script else do nothing |