Search code examples
cron

Crontab - Run a cronjob quarterly


Can anybody give a pattern on how do i run a cron job on quarterly basis. These include the dates March 31, June 30, September 30, Dec 31.


Solution

  • The simplest solution here would be to have two entries in your crontab--one for the 30s and another for the 31s, e.g.:

     0 0 30 6,9 * /path/to/your/script
     0 0 31 3,12 * /path/to/your/script