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
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online

No members online now.

Top