I need to schedule a job that will run at 5 am from Tue-Fri, only 4 days in a week using crontab. But if Tue/Wed/Thur/Fri is the first day of the month then this job should not run. How do I accomplish that? Below scheduled job is not working as it runs on Saturday/Sunday. Please advise what changes do I need to make in a below scheduled job.
00 05 2-31 * 2-5 /export/home/adwadm/analytics/bin/dly_res_gain_loss_dtl.sh 2&>1