Hi Team,
I have the below 4 scripts which I will be running in sequential order.
This run will start for today's business date.
If all the 4 scripts are success for today that means script has ran succesfully.
Howver if any one of these 4 scripts failed then it has to take the next business day (Monday -Friday) and run these 4 scripts again.
Below are the 4 scripts which I have.
I can get the tomoro's date and today's date by
Can you help me in putting in the loop so that I can acheive this.
I have the below 4 scripts which I will be running in sequential order.
This run will start for today's business date.
If all the 4 scripts are success for today that means script has ran succesfully.
Howver if any one of these 4 scripts failed then it has to take the next business day (Monday -Friday) and run these 4 scripts again.
Below are the 4 scripts which I have.
Code:
#!/bin/sh
.....
echo "File Watcher script is executing"
#${SHELL_SCRIPT_PATH/File_Watcher.sh} >> LOG_FILE.$RUN_DATE 2>&1
echo "Performing Pre validation check"
${SHELL_SCRIPT_PATH/Pre_Validation.sh} >> LOG_FILE.$RUN_DATE 2>&1
echo "Executing Sanity check script"
${SHELL_SCRIPT_PATH/Sanity_check.sh} >> LOG_FILE.$RUN_DATE 2>&1
echo "Performing Post validation check"
${SHELL_SCRIPT_PATH/Post_Validation.sh} >> LOG_FILE.$RUN_DATE 2>&1
Code:
NEXT_DATE=`date -d "$d days" +%Y%m%d`
TODAY_DATE=`date +%Y%m%d`
RUN_DATE =?
Moderator's Comments: | ||
|