Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup cron job to run every 5 days?

Tags:

arrays

cron

I want to setup cronjob which will start on for example today and it will run every 5 days. This is what I have now, is this will work correctly ? If I install this job at 5 o`clock and then every 5 days on 6 AM.

0 6 */5 * * mailx -r [email protected] -s "Message title" -c "[email protected]" [email protected] < body.txt

like image 573
Michal Avatar asked May 05 '15 10:05

Michal


1 Answers

0 0 */5 * *  midnight every 5 days.

See this, similar question just asked for every 3 days. Cron job every three days

like image 167
Yogesh_D Avatar answered Oct 20 '22 20:10

Yogesh_D