Cron Job Scheduling

Hi All,

I have a script which is scheduled in the Cron. It runs every 10th and 40th min of an hour.The job has to run every 30min.
But, I do not want to have the 00:10 MST run every day.Is it possible to exclude that run from the schedule?Or any other way through which i can run my job every 30 min and it doesn't come at 00:10 MST.

Thanks in Advance.

Thankyou.

Before executing your main script,
Just add the one more if condition for TimeStamp checking.

If [ $CurrentTimeStamp == "00:10 MST" ]
then
exit
echo "Execution of main script Stopped successfully."
echo " Current DateTime is: $CurrentTimeStamp "
fi

1 Like

Easier to have two crontab entries.

10,40 1-23 * * * /myscript
40 0 * * * /myscript
1 Like

Thanks both of you..

:b: Good 4 u