Crontab - MPRAS

Database
Enthusiast

Crontab - MPRAS

Hi All,

I need to run a file on MP-RAS. For that, i need schedule in crontab to run ALL FIRST SUNDAY OF THE MONTH.

Can anyone help me?

Thanks,

Renato.
1 REPLY
Teradata Employee

Re: Crontab - MPRAS

This isn't specific to MP-RAS. The UNIX cron command itself does not support that level of granularity, but you can have a cron entry for "every Sunday" and use conditional execution to achieve this effect. For example, if you want to run your_script.sh at 12:30 PM on the first Sunday of each month:

30 12 * * 0 [ `date '+%e'` -le 7 ] && your_script.sh