All Forums Database
Renato Dba 5 posts Joined 02/06
03 Oct 2008
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.

Fred 1096 posts Joined 08/04
04 Oct 2008

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

You must sign in to leave a comment.