Combine 3 shell scripts into one shell script and run combined shell script passing a parameter through CRON
I created three shell scripts. One for export, one for append, and one to truncate -- export.sh, append.sh, truncate.sh.
I have to combine all the three shell scripts into a master shell script. This master shell script should have a parameter and ORACLE_SID should be passed as the value for this parameter.
Only when the EXPORT script runs successfully, the append.sh script should run. Otherwise, error code/message should come up and the master script should be exited.
Only when the APPEND script runs successfully, the truncate.sh script should run. Otherwise, error code/message should come up and the master script should be exited.
When all the three shell scripts run successfully, the master script should be exited with a success return code. Otherwise, an error code/message should come up.
CRON JOB TO RUN THE MASTER SHELL SCRIPT
The master script is run through a CRON job and the value of the ORACLE-SID should be passed to the master script when the cron job runs.
Please send me the code to meet the above requirements as there is a time constraint.
I would like award this question 1000 points because it is difficult. This is an urgent task.