Autosys job scheduling issue,

Hi Friends,

There is an Autosys scheduled job that runs on the second day of the month, and it is using the Business day calendar.

So when the month starts on a weekend or there is a holiday at the beginning of the month the second business day and second day of the month obviously do not align.

So, whats the best way to tackle this problem so that it runs on the second CALENDAR day of the month ??

Thanks,

You can make a crontab running every day, and then test if its the second day on mont, like this:

20 0 * * * [[ $(date +%d) -eq 2 ]] && Your script here

It will then only run on date 2 in the month at 12:20 am