cron job help

S

sahabcse

Guest
Hi All

I want to run the script on Tuesdays (On Dates Between 1-7 and 15-21) at 12:00 PM of every month.

I have tried the below entry, but it is not working proper. Please help

00 12 1-7,15-21 * TUE /root/script.sh

Thanks in Advance
Sahab
 


Code:
00 12 1-7,15-21 * * test $(date +%u) -eq 2 && /root/script.sh
 

Members online


Latest posts

Top