I need to schedule a cron job to run at 3:00 PM on the first Thursday of every month. How can I do this? I have read another topic similar to this, but it is for the first Sunday of every month. How do I modify this to suit my needs? Please do not refer me to any manuals as they are of no help to me. This is why I am asking the question here.
Every first Sunday of very month
00 09 * * 7 [ $(date +\%d) -le 07 ] && /run/your/script
A simple answer should do here, I'm just don't know what the -le 07 stands for.
So the 4 is Thursday, What is the -le 07 in the cron?
is it a check for the first 7th day (Sunday) of the month?
00 15 * * 4 [ $(date +\%d) -le 07 ] && /run/your/script
Or should it be this one?
Assuming this would be a check for the first 4th Day (Thursday) of the month?
00 15 * * 4 [ $(date +\%d) -le 04 ] && /run/your/script
Since English isn't my mother tongue, I hope this is as clear as possible for you guys.
Thanks in advance.