Wednesday, January 29, 2025

cronjob schedule

 

How to remember cronjob:

 

📝 Mnemonic: "Mini-Hourly-Daily-Monthly-Weekly"

Think of it as:

👉 "Minute - Hour - Day - Month - Week"

🟢 5 stars (* * * * *) means "every minute"

🟢 */X means "every X unit" (e.g., */5 = every 5 minutes)

🟢 0 0 * * *At midnight every day

🟢 0 12 * * 1-5At 12 PM, Monday to Friday

🟢 30 14 1 * *At 2:30 PM on the 1st of every month

    // 30 14 1 * * => minutes 30, hour 14, day 1 only, every month, irrespective of day.

 

  

No comments:

Post a Comment