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
 


OP
O

old_bolvan

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

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online

No members online now.

Latest posts

Top