Cron Job in Linux

 I got very confused and got lot problem while running cron job,also not found proper structure on google so decide to writ my experience,below are step wise cron job.

minute:

* * * * * /etc/postfix/queuegraph-rrd.sh
This script run every minute
*/5 * * * * /bin/bash /root/mailq.sh
this script run every five minute
#*/57 * * * * /bin/bash /root/iptables.sh
this script run on 57 minute
hour.
0 * * * *
run at every hour 
0 23 * * * /bin/bash /root/pflogsumm.sh
this script run at 11 pm
day

15 15 15 * *
This will run at 3:15 on every 15 days
15 15 L * *
This will run on 3:15 of every last day of month 


10 0 1 * * /bin/bash /root/change_always_bcc.sh
this script run at 12,10  am night 1st day of month
month

15 15 15 11 * 
This will run on November,15 at 3:15  

Day of week
15 15 * * 1-6

this will run  from Monday to Saturday, at 3:15 
 


Comments

Popular posts from this blog

Docker Private Registery