Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
What would be the crontab entry look like for a job that runs on the first day of every third month?
The following will run script on the 1st of Jan, Apr, Jul and Oct at 03:30
30 03 01 Jan,Apr,Jul,Oct * /path/to/script
Alternatively, but less obvious
30 03 01 */3 * /path/to/script
Will run every three months at 03:30 on the 1st of Jan,Apr,Jul and Oct.
Wikipedia has a nice explanation about how to configure Cron.
For your specific case you could run a Cron Expression to run every 3 months- obviously change the months to suit your schedule.
0 0 1 JAN,APR,JUL,OCT * /path/to/script.bash
For JIRA (and other 6 digit cron expressions):
0 0 0 1 JAN,APR,JUL,OCT ?
Required, but never shown