Note: This is not AIX specific, should have been posted in the Shell Scripting subboard; recall this next time please
Quote:
The problem is that I am clering the file which contains the completed job entry at the last.
And say if a job fails it goes and clear the file.
What i need is that only if the entire file is sucessfully executed then only I should clear the file and if the scripts fails in between it should skip this step.
|
I am not sure how you check if your job was ok or not - I guess you will have to parse your error.txt... ?
So just react to this and not simply erase your file in the end, wether it was succesful or not, as you do it atm.
Not sure if your runEod.sh produces an exit code you can use to decide what to do next.
Since you have this script and probably wrote it yourself, I guess you can easily adjust to your efforts?